Skip to content

Commit

Permalink
Fix broken commit_details code in d646ad6
Browse files Browse the repository at this point in the history
While cleaning up, I accidentally replaced commit_details["date"] with
commit_details, which is very wrong, and causes failures.
  • Loading branch information
Marc Abramowitz committed Nov 14, 2014
1 parent d646ad6 commit c1077a1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bambino/appenv.py
Expand Up @@ -275,13 +275,11 @@ def _find_current_commit_details(self, git):

for line in lines:
if line.lower().startswith("commit"):
commit_details["sha"] = line.split(" ")[1]

cmd = ['git', 'show', '--format="%ci"',
commit_details["sha"]]
date_text = git.execute(cmd)
commit_details["date"] = date_text.split("\n")[0]
commit_details = commit_details.replace('"', '')
sha = commit_details["sha"] = line.split(" ")[1]
cmd = ['git', 'show', '--format="%ci"', sha]
git_show_rv = git.execute(cmd)
date_text = git_show_rv.split("\n")[0].replace('"', '')
commit_details["date"] = date_text

if line.lower().startswith("author"):
commit_details["author"] = line.split(" ")[1]
Expand Down

0 comments on commit c1077a1

Please sign in to comment.