diff --git a/VERSION b/VERSION index 4df4cfc2..b0ebf5aa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-28 21:32:56) dev +Version 2.00.0 (2012-07-28 22:37:15) dev diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index a680efe2..d4fbf0e8 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -1697,8 +1697,7 @@ def git_push(): try: repo = Repo(os.path.join(apath(r=request),app)) index = repo.index - os.chdir(os.path.join(apath(r=request),app)) - index.add('*') + index.add([apath(r=request)+app+'/*']) new_commit = index.commit(form.vars.changelog) origin = repo.remotes.origin origin.push() @@ -1711,6 +1710,5 @@ def git_push(): logging.error("Unexpected error:", sys.exc_info()[0]) session.flash = T("Push failed, git exited abnormally. See logs for details.") redirect(URL('site')) - os.chdir(apath(r=request)) return dict(app=app,form=form)