Skip to content

Commit 79ff0c6

Browse files
authored
Merge pull request #1864 from dscho/reinstate-cousins
Two things I totally forgot
2 parents 6c65e18 + 180b383 commit 79ff0c6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

builtin/rebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
10351035
PARSE_OPT_OPTARG, NULL, (intptr_t) "" },
10361036
OPT_STRING_LIST(0, "whitespace", &whitespace,
10371037
N_("whitespace"), N_("passed to 'git apply'")),
1038-
OPT_SET_INT('C', 0, &opt_c, N_("passed to 'git apply'"),
1038+
OPT_SET_INT('C', NULL, &opt_c, N_("passed to 'git apply'"),
10391039
REBASE_AM),
10401040
OPT_BOOL(0, "autostash", &options.autostash,
10411041
N_("automatically stash/stash pop before and after")),

git-gui/git-gui.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,11 @@ proc git_write {args} {
623623
}
624624
625625
proc githook_read {hook_name args} {
626-
set pchook [gitdir hooks $hook_name]
626+
if {[package vcompare $::_git_version 2.5.0] >= 0} {
627+
set pchook [git rev-parse --git-path "hooks/$hook_name"]
628+
} else {
629+
set pchook [gitdir hooks $hook_name]
630+
}
627631
lappend args 2>@1
628632
629633
# On Windows [file executable] might lie so we need to ask

0 commit comments

Comments
 (0)