Thread (5 messages) 5 messages, 3 authors, 2021-11-04

git aliases and GIT_PREFIX

flat view

From: Federico Kircheis <hidden>
Date: 2021-10-28 19:07:32

Hello to everyone,

today I reported what I believed to be a bug on

 https://github.com/git-for-windows/git/issues/3496

and learned about GIT_DIR when working with aliases and git worktree.



It's annoying that GIT_DIR it is defined only if (as far as I've understood) working from a worktrees or submodule, as it does not seem to be related to those type of repositories.

This is also irritating because apparently working aliases breaks when being executed from those repositories.


I believe it would be better if GIT_DIR it's either always set or never (could someone enlighten me why the variable is needed in first place?).

If it is consistently set, it would make it much easier to notice that an alias is actually broken.



Best

Federico


PS: I'm not subscribed to the mailing list (yet), so please keep me in CC.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help