1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #638 from sfromm/issue604

Fix for issue 604
This commit is contained in:
Michael DeHaan 2012-07-20 10:49:15 -07:00
commit baf07659f7

View file

@ -148,10 +148,9 @@ def pull(repo, dest, branch):
else:
m = re.search( '^\s+%s$' % branch, gbranch_out, flags=re.M ) #see if we've already checked it out
if m is None:
cmd = "git checkout -b %s origin/%s" % (branch, branch)
cmd = "git checkout --track -b %s origin/%s" % (branch, branch)
else:
(out, err) = switchLocalBranch( branch )
cmd = "git pull -u origin"
cmd = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)