2016-03-17 1:24 GMT+08:00 Junio C Hamano <gitster@xxxxxxxxx>: > 惠轶群 <huiyiqun@xxxxxxxxx> writes: > >>> Is it because the wish is to always use /tmp/git-$uid/ as a fallback >>> for $XDG_RUNTIME_DIR (as opposed to ~/.git-credential-cache/, which >>> is specific to the credential-cache and would look strange if we >>> used it for other "runtime" things)? >> >> Yes, I mean to use it as a general fallback for git. > > If that is the case the code probably needs to be a bit more careful > before deciding to use /tmp/git-$uid/ directory (is it really $uid's? > can anybody else write to it to race with the real user? etc.) > >> On the other hand, I think, falling back to $HOME/.git-credential-cache/socket >> doesn't make any sense for back-compability cannot be ensured. > > What do you mean by that? > > Using ~/.git-credential-cache/credential-cache.sock would not help > at all for existing users, but ~/.git-credential-cache/socket would > interoperate well with users with existing versions of Git, no? > I meant that FALLBACK instead of DEFAULT is useless for back-compatibility. Most users with existing versions of Git will be broken even if there is a fallback. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html