Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  merge: do not setup worktree twice
  check-ref-format: update usage string

Conflicts:
	builtin-check-ref-format.c
  • Loading branch information
Junio C Hamano committed Nov 10, 2009
2 parents 6a93158 + d629c40 commit 8ac7a77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion builtin-check-ref-format.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include "builtin.h"
#include "strbuf.h"

static const char builtin_check_ref_format_usage[] =
"git check-ref-format [--print] <refname>\n"
" or: git check-ref-format --branch <branchname-shorthand>";

/*
* Replace each run of adjacent slashes in src with a single slash,
* and write the result to dst.
Expand Down Expand Up @@ -49,6 +53,6 @@ int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
exit(0);
}
if (argc != 2)
usage("git check-ref-format refname");
usage(builtin_check_ref_format_usage);
return !!check_ref_format(argv[1]);
}
1 change: 0 additions & 1 deletion builtin-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
const char *best_strategy = NULL, *wt_strategy = NULL;
struct commit_list **remotes = &remoteheads;

setup_work_tree();
if (file_exists(git_path("MERGE_HEAD")))
die("You have not concluded your merge. (MERGE_HEAD exists)");
if (read_cache_unmerged())
Expand Down

0 comments on commit 8ac7a77

Please sign in to comment.