Skip to content

Commit

Permalink
fix for message
Browse files Browse the repository at this point in the history
  • Loading branch information
quezo committed Jan 9, 2013
1 parent 3a10b4d commit 5beb251
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bambino/appenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ def _find_current_commit_details(self, git):
"message": ""
}

cmd = ['git', 'log', '-1', '--pretty=%B']
commit_details["message"] = git.execute(cmd)
commit_details["message"] = self._find_git_message(git)

cmd = ['git', 'show', '--name-status']
last_commit_text = git.execute(cmd)
Expand All @@ -285,6 +284,16 @@ def _find_current_commit_details(self, git):

return commit_details

def _find_git_message(self, git):
try:
cmd = ['git', 'log', '--oneline', '-1']
text = git.execute(cmd)
text_list = text.split(' ')
msg = text_list[1:len(text_list)]
return ' '.join(msg)
except:
return ''

def _find_repo_name(self, git):
"""
Find the name of the remote repo for the etc directory
Expand Down

0 comments on commit 5beb251

Please sign in to comment.