2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-22 20:19:01 +00:00

Merge pull request #155 from frappe/b-admin

bench admin changes
This commit is contained in:
Rushabh Mehta 2015-11-03 10:47:02 +05:30
commit 4ff56f8dd7
2 changed files with 3 additions and 2 deletions

View File

@ -124,7 +124,7 @@ def get_current_version(app, bench='.'):
def get_upstream_version(app, branch=None, bench='.'):
repo_dir = get_repo_dir(app, bench=bench)
if not branch:
branch = get_current_branch(app)
branch = get_current_branch(app, bench=bench)
try:
contents = subprocess.check_output(['git', 'show', 'upstream/{branch}:setup.py'.format(branch=branch)], cwd=repo_dir, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError, e:

View File

@ -51,7 +51,8 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False,
if os.path.exists(path):
print 'Directory {} already exists!'.format(path)
sys.exit(1)
raise Exception("Site directory already exists")
# sys.exit(1)
os.mkdir(path)
for dirname in ('apps', 'sites', 'config', 'logs'):