~/tmp/review $ git show
commit 6096473b0422e83cea696f5c707412a05cdb4ba6
Author: Zhiqiang,He <developerworks@163.com>
Date: Fri Aug 22 11:08:02 2014 +0800
first commit
Change-Id: Ibf01a5ab2da2211a13707af72e77f751bd4837e7
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..5ec586d
--- /dev/null
+++ b/readme.md
@@ -0,0 +1 @@
+first commit
如果提交信息不包含Change-Id行, Gerrit默认会拒绝push, 并产生如下信息:
1
! [remote rejected] HEAD -> refs/publish/master (missing Change-Id in commit
message footer)
使用 git-review
git-review version 1.24 在 Mac OS X 10.9.3 上的问题, Python 版本 2.7.5,
1
~/tmp/review $ git-review
Traceback (most recent call last):
File "/usr/local/bin/git-review", line 11, in <module>
sys.exit(main())
File "/Library/Python/2.7/site-packages/git_review/cmd.py", line 1132, in main
(os.path.split(sys.argv[0])[-1], get_version()))
File "/Library/Python/2.7/site-packages/git_review/cmd.py", line 180, in get_version
provider = pkg_resources.get_provider(requirement)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 197, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: git-review