git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erik Blake <erik@icefield.yk.ca>
To: git@vger.kernel.org
Subject: push failure on domain-connected machine
Date: Wed, 18 Nov 2015 17:47:15 +0100	[thread overview]
Message-ID: <564CAB93.9040007@icefield.yk.ca> (raw)

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.

             reply	other threads:[~2015-11-18 17:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18 16:47 Erik Blake [this message]
2015-11-18 20:40 ` push failure on domain-connected machine Stefan Beller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=564CAB93.9040007@icefield.yk.ca \
    --to=erik@icefield.yk.ca \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).