git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* push failure on domain-connected machine
@ 2015-11-18 16:47 Erik Blake
  2015-11-18 20:40 ` Stefan Beller
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Blake @ 2015-11-18 16:47 UTC (permalink / raw)
  To: git

When pushing an existing local repo to a new remote repo, git 2.6.3
misidentifies the user's home directory on a domain-connected Windows
machine. My machine is running Win7-64 and I have tried both the 32-bit
and 64-bit version of git.

For example, the following sequence fails on the last command:

>git remote add remote <remote repo URL>
>git config remote.uf.push refs/heads/master:refs/heads/master
>git push remote master

The error returned by the last command is "Could not create directory
'/home/foo/.ssh'."

git should be targeting the directory '/home/foo.domain/.ssh' instead.

The path to the user profile should be taken from %HOMEDRIVE%%HOMEPATH%
or, preferably, %USERPROFILE% and not %USERNAME%, unless %USERDOMAIN% is
appended when a domain-connected computer is detected.

git 1.9.5 does not exhibit this problem.

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

* Re: push failure on domain-connected machine
  2015-11-18 16:47 push failure on domain-connected machine Erik Blake
@ 2015-11-18 20:40 ` Stefan Beller
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Beller @ 2015-11-18 20:40 UTC (permalink / raw)
  To: Erik Blake, Johannes Schindelin; +Cc: git@vger.kernel.org

+ Johannes

Though git for windows tracks its bugs at
https://github.com/git-for-windows/git/issues I think.

On Wed, Nov 18, 2015 at 8:47 AM, Erik Blake <erik@icefield.yk.ca> wrote:
> When pushing an existing local repo to a new remote repo, git 2.6.3
> misidentifies the user's home directory on a domain-connected Windows
> machine. My machine is running Win7-64 and I have tried both the 32-bit
> and 64-bit version of git.
>
> For example, the following sequence fails on the last command:
>
>>git remote add remote <remote repo URL>
>>git config remote.uf.push refs/heads/master:refs/heads/master
>>git push remote master
>
> The error returned by the last command is "Could not create directory
> '/home/foo/.ssh'."
>
> git should be targeting the directory '/home/foo.domain/.ssh' instead.
>
> The path to the user profile should be taken from %HOMEDRIVE%%HOMEPATH%
> or, preferably, %USERPROFILE% and not %USERNAME%, unless %USERDOMAIN% is
> appended when a domain-connected computer is detected.
>
> git 1.9.5 does not exhibit this problem.
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-11-18 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 16:47 push failure on domain-connected machine Erik Blake
2015-11-18 20:40 ` Stefan Beller

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).