Pull fails for git repository with LFS when working copy is not on disk C:

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 1.9.10.0
    • Component/s: Bitbucket, Git
    • Environment:

       

      Windows 10 64-bit

      More environment info are found in the log message displayed in the "description" section

    • Severity 2 - Major

      When pulling from a git repository hosted on bitbucket, which uses git LFS, the operation fails.

      Issuing 'git lfs logs last' as instructed by the error message, the following is the output.

      As highlighted in bold, it seems there is a problem with moving the downloaded files across different disks.

      I suspect this is a problem with either SourceTree or the Bitbucket Media API helper, because if I reset the working copy and then issue a regular 'git pull' from the command line (which uses vanilla lfs and not the Bitbucket media api), then the pull operation completes successfully

      git-lfs/1.5.4 (GitHub; windows amd64; go 1.7.4; git 71b637f1)
      git version 2.11.0.windows.1

      $ git-lfs.exe filter-process
      Error downloading object: app_Comp76/appdata/full/box_main.bin (b9cf2995f3bde11c2a10396b072daf2b61ee312e7dd1e07f0bf055d64c643360)

      Smudge error: Error buffering media file: Failed to copy downloaded file: cannot replace "D:\\Sviluppo\\Overloud\\Gems\\.git\\lfs\\objects\\b9\\cf
      b9cf2995f3bde11c2a10396b072daf2b61ee312e7dd1e07f0bf055d64c643360" with "C:\\Users\\info\\AppData\\Local\\Temp\\bb-lfs-incomplete
      file-b9cf2995f3bde11c2a10396b072daf2b61ee312e7dd1e07f0bf055d64c643360": rename C:\Users\info\AppData\Local\Temp\bb-lfs-incomplete\file-b9cf2995f3bde11c2a10396b072daf2b61ee312e7dd1e07f0bf055d64c643360 D:\Sviluppo\Overloud\Gems\.git\lfs\objects\b9\cf\b9cf2995f3bde11c2a10396b072daf2b61ee312e7dd1e07f0bf055d64c643360: The system cannot move the file to a different disk drive.:
      github.com/git-lfs/git-lfs/errors.newWrappedError
      C:/Go/src/github.com/git-lfs/git-lfs/errors/types.go:166
      github.com/git-lfs/git-lfs/errors.NewSmudgeError
      C:/Go/src/github.com/git-lfs/git-lfs/errors/types.go:252
      github.com/git-lfs/git-lfs/lfs.PointerSmudge
      C:/Go/src/github.com/git-lfs/git-lfs/lfs/pointer_smudge.go:70
      github.com/git-lfs/git-lfs/lfs.(*Pointer).Smudge
      C:/Go/src/github.com/git-lfs/git-lfs/lfs/pointer.go:65
      github.com/git-lfs/git-lfs/commands.smudge
      C:/Go/src/github.com/git-lfs/git-lfs/commands/command_smudge.go:84
      github.com/git-lfs/git-lfs/commands.filterCommand
      C:/Go/src/github.com/git-lfs/git-lfs/commands/command_filter_process.go:65
      github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra.(*Command).execute
      C:/Go/src/github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra/command.go:477
      github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra.(*Command).Execute
      C:/Go/src/github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra/command.go:551
      github.com/git-lfs/git-lfs/commands.Run
      C:/Go/src/github.com/git-lfs/git-lfs/commands/run.go:66
      main.main
      C:/Go/src/github.com/git-lfs/git-lfs/git-lfs.go:33
      runtime.main
      C:/Go/src/runtime/proc.go:183
      runtime.goexit
      C:/Go/src/runtime/asm_amd64.s:2086

      ENV:
      LocalWorkingDir=D:\Sviluppo\Overloud\Gems
      LocalGitDir=D:\Sviluppo\Overloud\Gems\.git
      LocalGitStorageDir=D:\Sviluppo\Overloud\Gems\.git
      LocalMediaDir=D:\Sviluppo\Overloud\Gems\.git\lfs\objects
      LocalReferenceDir=
      TempDir=D:\Sviluppo\Overloud\Gems\.git\lfs\tmp
      ConcurrentTransfers=3
      TusTransfers=false
      BasicTransfersOnly=false
      BatchTransfer=true
      SkipDownloadErrors=false
      FetchRecentAlways=false
      FetchRecentRefsDays=7
      FetchRecentCommitsDays=0
      FetchRecentRefsIncludeRemotes=true
      PruneOffsetDays=3
      PruneVerifyRemoteAlways=false
      PruneRemoteName=origin
      AccessDownload=basic
      AccessUpload=basic
      DownloadTransfers=basic,bitbucket-media-api
      UploadTransfers=basic,bitbucket-media-api
      GIT_CONFIG_PARAMETERS='color.branch=false' 'color.diff=false' 'color.status=false' 'diff.mnemonicprefix=false' 'core.quotepath=false' 'lfs.customtransfer.bitbucket-media-api.path=git-lfs-bitbucket-media-api'
      GIT_DIR=.git
      GIT_LFS_PATH=C:\Program Files\Git LFS
      GIT_PAGER=cat
      GIT_PREFIX=
      GIT_REFLOG_ACTION=pull origin master

              Assignee:
              Unassigned
              Reporter:
              yfede
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: