[PATCH] interpret-trailers: allow running outside a repository
- From
John Keeping <john@keeping.me.uk>
- Date
- Sep 5, 2015, 13:39 UTC
- Message-ID
- <d8a4735a50d84010b81fd6a07a7c7403074fbb74.1441460208.git.john@keeping.me.uk>
It may be useful to run git-interpret-trailers without needing to be in a repository.
Signed-off-by: John Keeping <john@keeping.me.uk> --- git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git.c b/git.c index 82d7a1c..2431cb0 100644 --- a/git.c +++ b/git.c @@ -417,7 +417,7 @@ static struct cmd_struct commands[] = { { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY }, { "init", cmd_init_db, NO_SETUP }, { "init-db", cmd_init_db, NO_SETUP }, - { "interpret-trailers", cmd_interpret_trailers, RUN_SETUP }, + { "interpret-trailers", cmd_interpret_trailers, RUN_SETUP_GENTLY }, { "log", cmd_log, RUN_SETUP }, { "ls-files", cmd_ls_files, RUN_SETUP }, { "ls-remote", cmd_ls_remote, RUN_SETUP_GENTLY },
-- 2.5.0.466.g9af26fa