Web lists-archives.com

Re: git-2.12.3-1: Cannot push to a remote with a Windows network path URL




On Thu, Jun 22, 2017 at 06:48:32PM -0700, Jonathan Chan wrote:
> After updating to git-2.12.3-1, I have been unable to push to a remote
> with a Windows network path URL:
>     $ git push origin
>     Counting objects: 3, done.
>     Delta compression using up to 4 threads.
>     Compressing objects: 100% (2/2), done.
>     Writing objects: 100% (3/3), 273 bytes | 0 bytes/s, done.
>     Total 3 (delta 1), reused 1 (delta 0)
>     remote: error: object directory
> /network/path/to/git-repository/objects does not exist; check
> .git/objects/info/alternates.
>     remote: fatal: unresolved deltas left after unpacking
>     error: remote unpack failed: unpack-objects abnormal exit
>     To file:////network/path/to/git-repository
>       ! [remote rejected]   master -> master (unpacker error)
>     error: failed to push some refs to 'file:////network/path/to/git-repository'
> 
> Notes:
> - Fetching works
> - Pushing works if I use EGit (in Eclipse)
> - Pushing works if I change the remote URL to use a drive mapped to
> the network path
> 
> Additional searching turned up Issue #979 on git-for-windows:
>     https://github.com/git-for-windows/git/issues/979
> 
> Issue #979 appears to have been fixed in git and included in
> 2.11.1..2.13.1 releases:
>     https://github.com/git/git/commit/7814fbe3f1e7cea1a675408df7b5dd1f5be731cc
> 
> I did not encounter this behavior prior to git-2.12.2-1. This is for x86_64.

So it sounds like this bug was introduced by the upstream 7814fbe
commit, although I've not explicitly verified that.  There are currently
some related conversations going on at the Git mailing list[0], which
sound like they may produce something that improves things here.

[0]: https://public-inbox.org/git/20170701125059.16210-1-tboegi@xxxxxx/T/

In any case, I'll add this to my tracking list and get it reported
upstream if appropriate.

Adam

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple