mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
[fix] git show - app
This commit is contained in:
parent
03d4fad8a6
commit
cb6e33cb0d
@ -156,7 +156,7 @@ def get_upstream_version(app, branch=None, bench='.'):
|
|||||||
if not branch:
|
if not branch:
|
||||||
branch = get_current_branch(app, bench=bench)
|
branch = get_current_branch(app, bench=bench)
|
||||||
try:
|
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:
|
except subprocess.CalledProcessError, e:
|
||||||
if "Invalid object" in e.output:
|
if "Invalid object" in e.output:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user