Thread (4 messages) 4 messages, 3 authors, 2016-06-15

Re: What's the ".git/gitdir" file?

From: Stefan Beller <hidden>
Date: 2016-06-15 23:07:04

On Tue, Oct 27, 2015 at 3:42 PM, Randall S. Becker
[off-list ref] wrote:
Slightly OT: Is there any way of avoiding having that file in the first place? I'm hoping to have a git repository in a normal file system (Posix) and a working area in a rather less-than-normal one where dots in file names are bad (actually a dot is a separator).
As said before, I would not expect a file .git/gitdir to be there if
not using submodules.
For your OT question, I'd presume you'd have environment variables setup
    export GIT_DIR=path_with_no_dots_and_git_repo_in_it # you mention
that is in your posix FS
    export GIT_WORK_TREE=/some.place.with.dot.separators
and you'd be good to go.

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