From: Glenn Morris Date: Mon, 1 Dec 2014 17:58:51 +0000 (-0500) Subject: * admin/update_autogen (commit): With git, call "add" before "commit". X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~24^2~242 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec7e07b333873789774cea53b45248fd0bf00600;p=emacs.git * admin/update_autogen (commit): With git, call "add" before "commit". --- diff --git a/admin/ChangeLog b/admin/ChangeLog index 82974dc846f..0529a877120 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog @@ -1,3 +1,7 @@ +2014-12-01 Glenn Morris + + * update_autogen (commit): With git, call "add" before "commit". + 2014-11-19 Paul Eggert Lessen focus on ChangeLog files, as opposed to change log entries. diff --git a/admin/update_autogen b/admin/update_autogen index d9d34fa3d6e..84e0584f220 100755 --- a/admin/update_autogen +++ b/admin/update_autogen @@ -228,6 +228,10 @@ commit () echo "Committing..." + [ "$vcs" = "git" ] && { + $vcs add "$@" || return $? + } + $vcs commit -m "Auto-commit of $type files." "$@" || return $? [ "$vcs" = "git" ] && {