Git push cannot use Windows share

I am trying to pull from my local repository to a remote repository located in the windows shared folder.

I am going to recreate a simple scenario where c is my local hard drive and n is a mapped network drive and I will show you the error I am getting.

Create a local repo

user@PC-W7 /c/More_git
$ git init
Initialized empty Git repository in c:/More_git/.git/

Creating a remote repo (as you can see, it is initialized without problems)

user@PC-W7 /n/git/central.git
$ git --bare init
Initialized empty Git repository in n:/git/central.git/

Then I add a new remote in my local repo, check that it really worked, add a new file and commit it to my local repository

user@PC-W7 /c/More_git (master)
$ git remote add origin /n/git/central.git

user@PC-W7 /c/More_git (master)
$ git remote -v
origin  n:/git/central.git (fetch)
origin  n:/git/central.git (push)

user@PC-W7 /c/More_git (master)
$ git add a.txt

user@PC-W7 /c/More_git (master)
$ git commit -a -m "a.txt added"
[master (root-commit) c075576] a.txt added
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 a.txt

At this point I am ready to click, and here is the problem

user@PC-W7 /c/More_git (master)
$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 207 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: unable to create temporary file: File exists
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To n:/git/central.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'n:/git/central.git'

, , . , , , , . .

?

.

EDIT:

Novell

UPDATE

$ git version
git version 1.8.3.msysgit.0

GIT_TRACE = 1 UNC-:

user@PC-W7 /c/More_git (master)
$ git remote set-url origin //vshare/DATA/PUBUSER/git/central.git

user@PC-W7 /c/More_git (master)
$ git remote -v
origin  //vshare/DATA/PUBUSER/git/central.git (fetch)
origin  //vshare/DATA/PUBUSER/git/central.git (push)

user@PC-W7 /c/More_git (master)
$ GIT_TRACE=1 git push origin master
trace: built-in: git 'push' 'origin' 'master'
trace: run_command: 'git-receive-pack '\''//vshare/DATA/PUBUSER/git/central.git'\'''
trace: built-in: git 'receive-pack' '//vshare/DATA/PUBUSER/git/central.git'
trace: run_command: 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress'
trace: built-in: git 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress'
Counting objects: 3, done.
trace: run_command: 'unpack-objects' '--pack_header=2,3'
Writing objects: 100% (3/3), 207 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: trace: built-in: git 'unpack-objects' '--pack_header=2,3'
remote: error: unable to create temporary file: File exists
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
trace: run_command: 'gc' '--auto' '--quiet'
trace: built-in: git 'gc' '--auto' '--quiet'
To //vshare/DATA/PUBUSER/git/central.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '//vshare/DATA/PUBUSER/git/central.git'

GIT_TRACE UNC-, , , .

+4
4

IP- , UNC- .

git remote set-url origin //ip-address/share/central.git
+1

Git 2.12 (Q1 2017) ( IP- )

. commit 7814fbe (14 2016 .) Johannes Sixt (j6t). ( Junio ​​C Hamano - gitster - commit 4833b7e, 19 2016 )

normalize_path_copy(): //server/share/dir Windows

normalize_path_copy() //server/share/dir , POSIX /server/share/dir.

'git push //server/share/dir master', tmp_objdir_add_as_alternate() , link_alt_odb_entries(). , .

, , . offset_1st_component , . compat/mingw.c:: mingw_offset_1st_component().

+1

git ( git version). git Windows 1.8.3 ( 1.8.4 1.8.5), :

$ git remote add origin /z/ztest.git

$ git remote -v
origin  z:/ztest.git (fetch)
origin  z:/ztest.git (push)

$ GIT_TRACE=1 git push origin master
trace: built-in: git 'push' 'origin' 'master'
trace: run_command: 'git-receive-pack '\''z:/ztest.git'\'''
trace: built-in: git 'receive-pack' 'z:/ztest.git'
trace: run_command: 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress'
trace: built-in: git 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress'
Counting objects: 3, done.
trace: run_command: 'unpack-objects' '--pack_header=2,3'
Writing objects: 100% (3/3), 212 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: trace: built-in: git 'unpack-objects' '--pack_header=2,3'
trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all'
trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all'
trace: run_command: 'gc' '--auto' '--quiet'
trace: built-in: git 'gc' '--auto' '--quiet'
To z:/ztest.git
 * [new branch]      master -> master

, GIT_TRACE=1 , , push.

, UNC, (: git remote add origin //MACHINE/Share/path/dir.git, , .

git , sha1_file.c create_tmpfile . tmp_obj_XXXXXX ( X - git_mkstemps_mode()). , , - ( , ). 16384 , , , , . , git Windows git_mkstemps_mode git/wrapper.c, , . msysGit, , .

0

Novell. git add . , . Novell . , -, .

Btw, ip- UNC- , .

p.s. , -, Novell-Windows-NTFS-MinGW Novell. , : http://git.661346.n2.nabble.com/Problem-pushing-to-a-Novell-share-td7248875.html

0

All Articles