git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling of paths
@ 2017-07-19 16:48 Victor Toni
  2017-07-20 19:42 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Victor Toni @ 2017-07-19 16:48 UTC (permalink / raw)
  To: git

Hello,

I have a .gitconfig in which I try to separate work and private stuff
by using includes which works great.

When using [include] the path is treated either
- relative to the including file (if the path itself relative)
- relative to the home directory if it starts with ~
- absolute if the path is absolute

This is fine and expected.

What's unexpected is that paths used for sslKey or sslCert are treated
differently insofar as they are expected to be absolute.
Relative paths (whether with or without "~") don't work.

It would't be an issue to use absoulte paths if I wouldn't use the
same config for Linux and Windows and each OS has its own semantic
where it $HOME ishould be.

To avoid double configurations I tried to use the same directory
structure within my $HOME for both OS.

This approach fails since paths other than for [include] seem to have
to be absolute which seems like a bug to me.

Do you have any suggestions how I could make this work?

Thank you,
Victor

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-24 16:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-19 16:48 Handling of paths Victor Toni
2017-07-20 19:42 ` Junio C Hamano
2017-07-20 20:05   ` Charles Bailey
2017-07-20 20:30     ` Junio C Hamano
2017-07-20 20:52       ` Charles Bailey
2017-07-20 21:03       ` Victor Toni
2017-07-21 15:15         ` Junio C Hamano
2017-07-24 16:52           ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).