Skip to content

Commit be18f4b

Browse files
committed
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
2 parents 38b7ccb + acb0b7b commit be18f4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

builtin-commit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
224224
const char **pathspec = NULL;
225225

226226
if (interactive) {
227-
interactive_add(argc, argv, prefix);
227+
if (interactive_add(argc, argv, prefix) != 0)
228+
die("interactive add failed");
228229
if (read_cache_preload(NULL) < 0)
229230
die("index file corrupt");
230231
commit_style = COMMIT_AS_IS;

git-repack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,5 @@ fi
181181

182182
case "$no_update_info" in
183183
t) : ;;
184-
*) git-update-server-info ;;
184+
*) git update-server-info ;;
185185
esac

0 commit comments

Comments
 (0)