We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cc1cc2 + c680e42 commit d419378Copy full SHA for d419378
avocado-setup.py
@@ -214,7 +214,7 @@ def get_repo(repo, basepath):
214
branch = "master"
215
else:
216
branch = repo[1]
217
- cmd_update = "b=%s;git reset --hard && git checkout master && git remote update && (git branch|grep $b||(git checkout $b && git switch -c $b))" % branch
+ cmd_update = "b=%s;git reset --hard && git checkout master && git remote update && (git branch | grep -w $b && (git switch $b && git pull origin $b --rebase) || (git fetch origin && git switch -c $b origin/$b) || echo \"Error: Could not sync with origin/$b\")" % branch
218
repo_name = repo[0].split('/')[-1].split('.git')[0]
219
repo_path = os.path.join(basepath, repo_name)
220
cmd_clone = "git clone %s %s" % (repo[0], repo_path)
0 commit comments