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

[fix] git show - app

This commit is contained in:
Anand Doshi 2016-06-09 18:16:15 +05:30
parent 9232d25375
commit 070f80ece6

View File

@ -141,7 +141,7 @@ def get_upstream_version(app, branch=None, bench='.'):
if not branch:
branch = get_current_branch(app, bench=bench)
try:
contents = subprocess.check_output(['git', 'show', 'upstream/{branch}:{app}/__init__.py'.format(branch=branch)], cwd=repo_dir, stderr=subprocess.STDOUT, app=app)
contents = subprocess.check_output(['git', 'show', 'upstream/{branch}:{app}/__init__.py'.format(branch=branch, app=app)], cwd=repo_dir, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError, e:
if "Invalid object" in e.output:
return None