Skip to content

Commit 8ac7a77

Browse files
committed
Merge branch 'maint'
* maint: merge: do not setup worktree twice check-ref-format: update usage string Conflicts: builtin-check-ref-format.c
2 parents 6a93158 + d629c40 commit 8ac7a77

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

builtin-check-ref-format.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
#include "builtin.h"
88
#include "strbuf.h"
99

10+
static const char builtin_check_ref_format_usage[] =
11+
"git check-ref-format [--print] <refname>\n"
12+
" or: git check-ref-format --branch <branchname-shorthand>";
13+
1014
/*
1115
* Replace each run of adjacent slashes in src with a single slash,
1216
* and write the result to dst.
@@ -49,6 +53,6 @@ int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
4953
exit(0);
5054
}
5155
if (argc != 2)
52-
usage("git check-ref-format refname");
56+
usage(builtin_check_ref_format_usage);
5357
return !!check_ref_format(argv[1]);
5458
}

builtin-merge.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,6 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
846846
const char *best_strategy = NULL, *wt_strategy = NULL;
847847
struct commit_list **remotes = &remoteheads;
848848

849-
setup_work_tree();
850849
if (file_exists(git_path("MERGE_HEAD")))
851850
die("You have not concluded your merge. (MERGE_HEAD exists)");
852851
if (read_cache_unmerged())

0 commit comments

Comments
 (0)