# [PATCH] interpret-trailers: allow running outside a repository

2 messages from 2015-09-05 to 2015-09-07. Participants: John Keeping, Christian Couder.
Thread: https://gitlist.dev/t/40283

## John Keeping, 2015-09-05 13:39

Subject: [PATCH] interpret-trailers: allow running outside a repository
Message-ID: <d8a4735a50d84010b81fd6a07a7c7403074fbb74.1441460208.git.john@keeping.me.uk>
URL: https://gitlist.dev/e/d8a4735a50d84010b81fd6a07a7c7403074fbb74.1441460208.git.john%40keeping.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

```

## Christian Couder, 2015-09-07 20:08

Subject: Re: [PATCH] interpret-trailers: allow running outside a repository
Message-ID: <CAP8UFD1x+fCG5Zv106r0cHFX+sQ6nt37KCrxVoVgenHgcjKFZw@mail.gmail.com>
URL: https://gitlist.dev/e/CAP8UFD1x%2BfCG5Zv106r0cHFX%2BsQ6nt37KCrxVoVgenHgcjKFZw%40mail.gmail.com
In-Reply-To: <d8a4735a50d84010b81fd6a07a7c7403074fbb74.1441460208.git.john@keeping.me.uk>

```
On Sat, Sep 5, 2015 at 3:39 PM, John Keeping <john@keeping.me.uk> wrote:
> It may be useful to run git-interpret-trailers without needing to be in
> a repository.

Yeah, it looks like it works fine outside a repo.

Tested-by: Christian Couder <chriscool@tuxfamily.org>

Thanks,
Christian.

```
