Go to file
Shawn O. Pearce 42cf7191e3 commit-msg: Do not insert Change-Id if the message is empty
git commit calls the commit-msg hook when the user creates an empty
message file in order to abort the commit process.  If the hook then
edits the file content and inserts a line, such as our Change-Id,
git takes this as a valid commit and creates it, rather than aborts.
Thus we need to test for the empty file case specially and avoid
creating a Change-Id line during it.

Change-Id: I84a6309ae91d04b489ba48587936bfa80ad04dc1
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-08-25 12:03:23 -07:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
2009-08-24 19:44:09 -07:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB