repo-config needs a prefix.

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

repo-config needs a prefix.

From: Robert Shearman <hidden>
Date: 2016-06-15 22:42:36

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'
---
  git.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

Re: repo-config needs a prefix.

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:36

Hi,

On Thu, 10 Aug 2006, Robert Shearman wrote:
-               { "repo-config", cmd_repo_config },
+               { "repo-config", cmd_repo_config, NEEDS_PREFIX },
Doesn't this prevent

$ git-ls-remote kernel

from being run anywhere, when the relevant information is in 
$HOME/.gitconfig?

I'd rather fix git-fetch to cd to the root of the repo, since it really 
does not make sense to expect git-fetch to fetch just one subdirectory.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help