Thread (7 messages) flat view 7 messages, 3 authors, 2020-02-14

RE: Inconsistent results from git rev-parse --show-toplevel

From: Crabtree, Andrew <hidden>
Date: 2020-01-25 19:31:27

Possibly related (same subject, not in this thread)

From: Junio C Hamano [mailto:gitster@pobox.com] 
Because you do not know where the top level is (otherwise you would not be asking "rev-parse --show-toplevel" about it), either is an option for you, 
but you can "unset GIT_DIR" to stop telling Git that it should not perform the repository discovery.
Gotcha, thanks.  Would it make sense to have 'git rev-parse --show-toplevel' error out if GIT_DIR is set?  Or update the rev-parse documentation with a warning about GIT_DIR? 

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