зеркало из https://github.com/microsoft/git.git
Merge branch 'maint-1.6.1' into maint
* maint-1.6.1: commit: abort commit if interactive add failed git-repack: use non-dashed update-server-info
This commit is contained in:
Коммит
be18f4b899
|
@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
|
|||
const char **pathspec = NULL;
|
||||
|
||||
if (interactive) {
|
||||
interactive_add(argc, argv, prefix);
|
||||
if (interactive_add(argc, argv, prefix) != 0)
|
||||
die("interactive add failed");
|
||||
if (read_cache_preload(NULL) < 0)
|
||||
die("index file corrupt");
|
||||
commit_style = COMMIT_AS_IS;
|
||||
|
|
|
@ -181,5 +181,5 @@ fi
|
|||
|
||||
case "$no_update_info" in
|
||||
t) : ;;
|
||||
*) git-update-server-info ;;
|
||||
*) git update-server-info ;;
|
||||
esac
|
||||
|
|
Загрузка…
Ссылка в новой задаче