fix update
This commit is contained in:
parent
88f0a11612
commit
2e89299eca
1 changed files with 2 additions and 2 deletions
|
@ -316,14 +316,14 @@ if __name__ == "__main__":
|
||||||
if exists(path):
|
if exists(path):
|
||||||
os.chdir(path)
|
os.chdir(path)
|
||||||
current_branch = get_branch(path)
|
current_branch = get_branch(path)
|
||||||
|
revno = get_version(path)
|
||||||
if repo == 'pandora':
|
if repo == 'pandora':
|
||||||
pandora_old_revno = revno
|
pandora_old_revno = revno
|
||||||
|
current += revno
|
||||||
if current_branch != branch:
|
if current_branch != branch:
|
||||||
run('git', 'remote', 'set-branches', 'origin', '*')
|
run('git', 'remote', 'set-branches', 'origin', '*')
|
||||||
run('git', 'fetch', 'origin')
|
run('git', 'fetch', 'origin')
|
||||||
run('git', 'checkout', branch)
|
run('git', 'checkout', branch)
|
||||||
revno = get_version(path)
|
|
||||||
current += revno
|
|
||||||
url = repos[repo]['url']
|
url = repos[repo]['url']
|
||||||
print('Checking', repo)
|
print('Checking', repo)
|
||||||
run('git', 'pull')
|
run('git', 'pull')
|
||||||
|
|
Loading…
Reference in a new issue