2017-01-13 41 views
3

ウィンドウ環境で作業していて、ネットワーク上にリモートのgitリポジトリがあります。リモート:致命的:アンパック後に未解決のデルタが残っています

git init --bare 

を使用して作成した は、それから私は私がコミットしてプッシュし、それに取り組むことができ、私の地元でのプロジェクトをクローンします。 しかし現時点では、私は次のエラーでもうプッシュしcould'nt:

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' 

だから私は別のレポと同じ起こっを作成しようとしました...

あなたはどのようにこのエラーについての手掛かりを持っています起こったとそれを修正する方法? おかげ

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 
+0

/SERVER/Apps/myApp.git/objectsは/SERVER/Apps/myApp/.git/objectsである必要があります。おそらくどこかの設定やパスが間違って設定されていますか? – jbu

+0

"git config -l"の出力が – jbu

+1

であるのが不思議です。/SERVER/Apps/myApp.git/objectsのパスは正しいですが、存在しますが、パスの開始位置に1つのスラッシュがありませんか? – fliim

答えて

5

とても近いです!これはGit 2.12(2017年第1四半期)に修正される予定です。
を参照してください「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 .

だから、初めての作品は、その後、間違ったパスが登録されますと、その後、それはもう動作しません。

回避策として、その共有パスをドライブ文字にマップできないかどうかを確認してください。

net use z: \\SERVER\Apps 

Map network drive command line」を参照してください。
次に、そのパスをリモートのorigin URLとして使用します。

cd C:\path\to\my\local\repo 
git remote set-url origin Z:\myApp.git 
+0

ありがとうございました。あなたの答えはクリア&シンプルです。そしてこの回避策は完全に機能します。 – fliim

関連する問題