Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remote: fatal: unresolved deltas left after unpacking

Im working on window environnement and I have a remote git repository on the network. Created using

git init --bare

Then I clone the project on my local, I can work on it commit and push. But at a moment, i could'nt push anymore with the following error:

Counting objects: 21, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (21/21), 1.93 KiB | 0 bytes/s, done.
Total 21 (delta 15), reused 0 (delta 0)
remote: error: object directory /SERVER/Apps/myApp.git/objects does not exist; check .git/objects/info/alternates.
remote: fatal: unresolved deltas left after unpacking
error: unpack failed: unpack-objects abnormal exit
To //SERVER/Apps/myApp.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '//SERVER/Apps/myApp.git'

So I tried to create another repo and same happend...

do you have any clue about how this error happened and how to fix it ? Thanks

EDIT

core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.name=Flim
[email protected]
alias.tree=log --oneline --decorate --all --graph
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=//SERVER/Apps/myApp.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
like image 415
fliim Avatar asked Jan 13 '17 08:01

fliim


1 Answers

So close! This will be fixed in the upcoming Git 2.12 (Q1 2017).
See "Git push fail to a Windows share"

normalize_path_copy() is not prepared to keep the double-slash of a //server/share/dir kind of path, but treats it like a regular POSIX style path and transforms it to /server/share/dir.

So it works the first time, then the wrong path gets registered and then, it does not work anymore.

As a workaround for now, see if you can not map that shared path to a drive letter.

net use z: \\SERVER\Apps

See "Map network drive command line".
Then use that path as your remote origin url.

cd C:\path\to\my\local\repo
git remote set-url origin Z:\myApp.git
like image 192
VonC Avatar answered Sep 25 '22 00:09

VonC