author | Brandon Casey <casey@nrlssc.navy.mil> | |
Wed, 23 Jan 2008 17:21:22 +0000 (11:21 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Jan 2008 18:10:11 +0000 (10:10 -0800) | ||
commit | 5a9dd3998fb4c3ddc048cbcab74a8df72bff91b7 | |
tree | 3b2e449ead130e471dd4f2c207ce017becb4e34b | tree | snapshot |
parent | 28678b4f2f2e449986de4a6fc2dc93b32299ca74 | commit | diff |
git-commit: exit non-zero if we fail to commit the index
In certain rare cases, the creation of the commit object
and update of HEAD can succeed, but then installing the
updated index will fail. This is most likely caused by a
full disk or exceeded disk quota. When this happens the
new index file will be removed, and the repository will
be left with the original now-out-of-sync index. The
user can recover with a "git reset HEAD" once the disk
space issue is resolved.
We should detect this failure and offer the user some
helpful guidance.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In certain rare cases, the creation of the commit object
and update of HEAD can succeed, but then installing the
updated index will fail. This is most likely caused by a
full disk or exceeded disk quota. When this happens the
new index file will be removed, and the repository will
be left with the original now-out-of-sync index. The
user can recover with a "git reset HEAD" once the disk
space issue is resolved.
We should detect this failure and offer the user some
helpful guidance.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history |