Skip to content

Push to local repository on Windows fails #3742

@gdlxn-ibm

Description

@gdlxn-ibm

I created a local repository on Windows 10 which contains some Git-LFS files. I then attempted to push that repository to another repository on the same system. The git push failed:

c:\r2g-wd-git-issue-103\git-issue-103>git push origin git-issue-103-stream
10:16:43.444566 exec-cmd.c:238          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
10:16:43.452588 git.c:439               trace: built-in: git push origin git-issue-103-stream
10:16:43.454629 run-command.c:663       trace: run_command: unset GIT_PREFIX; 'git-receive-pack '\''C:/r2g-wd-git-issue-103/git-issue-103.git'\'''
10:16:43.575459 exec-cmd.c:238          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
10:16:43.585551 git.c:439               trace: built-in: git receive-pack C:/r2g-wd-git-issue-103/git-issue-103.git
10:16:43.605668 run-command.c:663       trace: run_command: .git/hooks/pre-push origin C:/r2g-wd-git-issue-103/git-issue-103.git
10:16:43.764718 exec-cmd.c:238          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
10:16:43.766737 git.c:704               trace: exec: git-lfs pre-push origin C:/r2g-wd-git-issue-103/git-issue-103.git
10:16:43.766737 run-command.c:663       trace: run_command: git-lfs pre-push origin C:/r2g-wd-git-issue-103/git-issue-103.git
10:16:44.353444 trace git-lfs: exec: git 'version'
10:16:44.423417 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' 'HEAD' '--symbolic-full-name' 'HEAD'
10:16:44.609065 trace git-lfs: exec: git 'config' '-l'
10:16:44.649649 trace git-lfs: pre-push: refs/heads/git-issue-103-stream 740f7c4eef42342120eb2ebc95d8144ac20f4ace refs/heads/git-issue-103-stream 0000000000000000000000000000000000000000
10:16:44.821586 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:16:47.396485 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 0/6)
10:16:47.396485 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:16:49.737675 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 1/6)
10:16:49.737675 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:16:52.234572 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 2/6)
10:16:52.234572 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:16:54.570951 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 3/6)
10:16:54.570951 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:16:57.047756 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 4/6)
10:16:57.047756 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:16:59.394283 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 5/6)
Remote "origin" does not support the LFS locking API. Consider disabling it with:
  $ git config lfs.https://c////r2g-wd-git-issue-103/git-issue-103.git/info/lfs.locksverify false
10:16:59.394283 trace git-lfs: tq: running as batched queue, batch size of 100
10:16:59.395281 trace git-lfs: run_command: git rev-list --stdin --objects --not --remotes=origin --
10:16:59.463586 trace git-lfs: tq: sending batch of size 1
10:16:59.463586 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:17:01.812323 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 0/6)
10:17:01.812323 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:17:04.299273 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 1/6)
10:17:04.299273 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:17:06.656220 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 2/6)
10:17:06.656220 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:17:09.021487 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 3/6)
10:17:09.021487 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:17:11.488424 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 4/6)
10:17:11.488424 trace git-lfs: run_command: ssh -- c git-lfs-authenticate ///r2g-wd-git-issue-103/git-issue-103.git upload
10:17:13.834327 trace git-lfs: ssh: c failed, error: exit status 255, message: ssh: Could not resolve hostname c: Name or service not known (try: 5/6)
batch request: ssh: Could not resolve hostname c: Name or service not known: exit status 255
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done
error: failed to push some refs to 'C:/r2g-wd-git-issue-103/git-issue-103.git'

Here's git remote -v output:

c:\r2g-wd-git-issue-103\git-issue-103>git remote -v
10:18:45.898839 exec-cmd.c:238          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
10:18:45.898839 git.c:439               trace: built-in: git remote -v
origin  C:/r2g-wd-git-issue-103/git-issue-103.git (fetch)
origin  C:/r2g-wd-git-issue-103/git-issue-103.git (push)

Here's git lfs env output:

c:\r2g-wd-git-issue-103\git-issue-103>git lfs env
10:19:53.755597 exec-cmd.c:238          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
10:19:53.763673 git.c:704               trace: exec: git-lfs env
10:19:53.763673 run-command.c:663       trace: run_command: git-lfs env
10:19:53.807819 trace git-lfs: exec: git 'version'
git-lfs/2.7.2 (GitHub; windows amd64; go 1.12.2; git 08a08ae0)
git version 2.22.0.windows.1

10:19:53.840380 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' 'HEAD' '--symbolic-full-name' 'HEAD'
10:19:53.984851 trace git-lfs: exec: git 'config' '-l'
Endpoint=https://c////r2g-wd-git-issue-103/git-issue-103.git/info/lfs (auth=none)
  SSH=c:///r2g-wd-git-issue-103/git-issue-103.git
LocalWorkingDir=C:\r2g-wd-git-issue-103\git-issue-103
LocalGitDir=C:\r2g-wd-git-issue-103\git-issue-103\.git
LocalGitStorageDir=C:\r2g-wd-git-issue-103\git-issue-103\.git
LocalMediaDir=C:\r2g-wd-git-issue-103\git-issue-103\.git\lfs\objects
LocalReferenceDirs=
TempDir=C:\r2g-wd-git-issue-103\git-issue-103\.git\lfs\tmp
ConcurrentTransfers=3
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=C:\r2g-wd-git-issue-103\git-issue-103\.git\lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic
UploadTransfers=basic
GIT_EXEC_PATH=C:/Program Files/Git/mingw64/libexec/git-core
GIT_LFS_PATH=C:\Program Files\Git LFS
GIT_TRACE=1
git config filter.lfs.process = "git-lfs filter-process"
git config filter.lfs.smudge = "git-lfs smudge -- %f"
git config filter.lfs.clean = "git-lfs clean -- %f"
10:19:54.021429 trace git-lfs: filepathfilter: rewrite ".git" as "**/.git/**"
10:19:54.021429 trace git-lfs: filepathfilter: rewrite "**/.git" as "**/.git"
10:19:54.022426 trace git-lfs: filepathfilter: accepting "tmp"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions