diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-02-12 22:41:51 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-12 22:41:51 -0800 |
commit | 5cdc9fbb0894023da8e4dab552dfdda8b662feab (patch) | |
tree | 9c4c577d565a76e2af67903d4cf0e98a3d416c14 /builtin | |
parent | Update draft release notes to 1.7.10 (diff) | |
parent | merge: do not launch an editor on "--no-edit $tag" (diff) | |
download | tgif-5cdc9fbb0894023da8e4dab552dfdda8b662feab.tar.xz |
Merge branch 'jn/merge-no-edit-fix'
* jn/merge-no-edit-fix:
merge: do not launch an editor on "--no-edit $tag"
Conflicts:
builtin/merge.c
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/merge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index 7e6db3bb35..ed0f959ac4 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -1324,7 +1324,8 @@ int cmd_merge(int argc, const char **argv, const char *prefix) merge_remote_util(commit) && merge_remote_util(commit)->obj && merge_remote_util(commit)->obj->type == OBJ_TAG) { - option_edit = 1; + if (option_edit < 0) + option_edit = 1; allow_fast_forward = 0; } } |