Skip to content

LFS Upload Failure Does Not Cause Git Push to Fail #609

Closed

Description

@WillHipschman

I'm using git-lfs on commit:
commit 0cca12b
Date: Mon Aug 24 10:40:43 2015 -0400

When I push to an NTLM server the pointer file is successfully pushed to GIT but the lfs object file fails to be uploaded with a 401. No error is reported, but my content is not saved on the server.

If I now delete my local repo, I lose my content.

I would expect the 401 uploading the lfs object would cause the git push to fail.

E:\OnPrem\P3>git push
10:06:32.179901 git.c:348               trace: built-in: git 'push'
10:06:32.179901 run-command.c:347       trace: run_command: 'git-remote-http' 'origin' 'http://willhi-main:8080/tfs/DefaultCollection/_git/P3'
10:06:32.243644 run-command.c:347       trace: run_command: 'git credential-manager get'
10:06:32.435291 git.c:558               trace: exec: 'git-credential-manager' 'get'
10:06:32.435291 run-command.c:347       trace: run_command: 'git-credential-manager' 'get'
10:06:32.541863 run-command.c:347       trace: run_command: 'bash' '-c' 'cat >/dev/tty && read -r line </dev/tty && echo "$line"'
Username for 'http://willhi-main:8080': willhi
10:06:35.853702 run-command.c:347       trace: run_command: 'bash' '-c' 'cat >/dev/tty && read -r -s line </dev/tty && echo "$line" && echo >/dev/tty'
Password for 'http://willhi@willhi-main:8080':
10:06:41.224339 run-command.c:347       trace: run_command: 'git credential-manager store'
10:06:41.411817 git.c:558               trace: exec: 'git-credential-manager' 'store'
10:06:41.411817 run-command.c:347       trace: run_command: 'git-credential-manager' 'store'
10:06:41.489942 run-command.c:347       trace: run_command: '.git/hooks/pre-push' 'origin' 'http://willhi-main:8080/tfs/DefaultCollection/_git/P3'
10:06:41.708712 git.c:558               trace: exec: 'git-lfs' 'pre-push' 'origin' 'http://willhi-main:8080/tfs/DefaultCollection/_git/P3'
10:06:41.708712 run-command.c:347       trace: run_command: 'git-lfs' 'pre-push' 'origin' 'http://willhi-main:8080/tfs/DefaultCollection/_git/P3'
trace git-lfs: run_command: git rev-list --objects 1cf57a4263bda0eebdb79cb88f042b4aba598c9b --not --remotes=origin
trace git-lfs: run_command: git cat-file --batch-check
trace git-lfs: run_command: git cat-file --batch
trace git-lfs: run_command: 'git' config -l
trace git-lfs: run_command: 'git' config -l -f E:\OnPrem\P3\.git\config
trace git-lfs: tq: starting 3 transfer workers
trace git-lfs: tq: running as individual queue
trace git-lfs: api: uploading (9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0)
trace git-lfs: HTTP: POST http://willhi-main:8080/tfs/DefaultCollection/_git/P3.git/info/lfs/objects
trace git-lfs: HTTP: 401
(0 of 1 files) 0 B / 3 B
10:06:42.821919 run-command.c:347       trace: run_command: 'send-pack' '--stateless-rpc' '--helper-status' '--thin' '--progress' 'http://willhi-main:8080/tfs/DefaultCollection/_git/P3/' '--stdin'
10:06:42.884424 git.c:348               trace: built-in: git 'send-pack' '--stateless-rpc' '--helper-status' '--thin' '--progress' 'http://willhi-main:8080/tfs/DefaultCollection/_git/P3/' '--stdin'
10:06:42.884424 run-command.c:347       trace: run_command: 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--progress'
10:06:42.946902 git.c:348               trace: built-in: git 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--progress'
Counting objects: 3, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 410 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Analyzing objects (3/3) (1 ms)
remote: Storing pack file and index...  done (400 ms)
To http://willhi-main:8080/tfs/DefaultCollection/_git/P3
   aa7bff1..1cf57a4  master -> master

Activity

  1. rubyist commented on Sep 8, 2015

    @rubyist
    Contributor

    Fixed in #634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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