projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0760630
)
get specified commit info
author
Guan Junchun
<junchunx.guan@intel.com>
Tue, 21 Aug 2012 09:18:51 +0000
(17:18 +0800)
committer
Guan Junchun
<junchunx.guan@intel.com>
Thu, 23 Aug 2012 02:45:34 +0000
(10:45 +0800)
1. gbs rb -c HEAD~1 should get 'HEAD~1' commit info
2. gbs rb [--include-all] get 'HEAD' commit info
gitbuildsys/cmd_remotebuild.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_remotebuild.py
b/gitbuildsys/cmd_remotebuild.py
index
65ff781
..
de7d673
100644
(file)
--- a/
gitbuildsys/cmd_remotebuild.py
+++ b/
gitbuildsys/cmd_remotebuild.py
@@
-210,7
+210,7
@@
def do(opts, args):
msger.error("Repository error: %s" % excobj)
try:
- commit_msg = repo.get_commit_info('HEAD')['subject']
+ commit_msg = repo.get_commit_info(
opts.commit or
'HEAD')['subject']
except GitRepositoryError, exc:
msger.error('failed to get commit info: %s' % exc)