2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

[fix] pull 'upstream'

This commit is contained in:
Anand Doshi 2016-06-14 18:20:19 +05:30
parent 2d716f261d
commit 47b65ec28f

View File

@ -106,7 +106,7 @@ def pull_all_apps(bench='.'):
contents = subprocess.check_output(['git', 'remote', '-v'], cwd=app_dir,
stderr=subprocess.STDOUT)
if 'upstream ' in contents:
if re.findall('upstream[\s]+', contents):
remote = 'upstream'
else:
# get the first remote