threads / patch / 5195

patchrepo-config needs a prefix.

Subject: [PATCH] repo-config needs a prefix.

## tl;dr

One message between Aug 10, 2006 and Aug 10, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Robert Shearman· Aug 10, 2006, 09:41 UTC · lore
This fixes the message received when invoking certain commands from 
outside of a git tree, so e.g. instead of receiving this:
/home/rob/bin/git-fetch: line 89: /FETCH_HEAD: Permission denied
We get this again:
fatal: Not a git repository: '.git'
Signed-off-by: Robert Shearman <rob@codeweavers.com>
---
  git.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
This time with Signed-off-by line.
Show changes to git.c +1 −1
diff --git a/git.c b/git.c
index 18ba14a..f9c76a1 100644
--- a/git.c
+++ b/git.c
@@ -264,7 +264,7 @@ static void handle_internal_command(int 
 		{ "prune", cmd_prune, NEEDS_PREFIX },
 		{ "mv", cmd_mv, NEEDS_PREFIX },
 		{ "prune-packed", cmd_prune_packed, NEEDS_PREFIX },
-		{ "repo-config", cmd_repo_config },
+		{ "repo-config", cmd_repo_config, NEEDS_PREFIX },
 	};
 	int i;
 

← back to recent threads