| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:from:date | |
| :message-id:subject:to:content-type; q=dns; s=default; b=esfeZJi | |
| bp+lle0fIyeNiulaw9ebyrozYP5H/4PgUP43I6Do47iuv6UrRwYtmUeLRMyu30NM | |
| ldpGbF6i1AiaFGGVqMvaaYWMi8ftJmjhP3hqCEZygmYeQEJoIxImYe9pfcIai1jw | |
| IJ53o8i6Hf6IOelTjBOim+mpH+dy92Sh7vPA= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:from:date | |
| :message-id:subject:to:content-type; s=default; bh=acHtIytz2vll1 | |
| sD53z7MI9Rf2w0=; b=euJZr+bXEwDK5xB6vSoxsOR9hbf6A5cQjrSJbCuTOlfqe | |
| 7XsPdY5XhBp9vXbCQwAkkwMFA7TWfDpP3Vci/2rP9g/jezl8kuReKUOue5A/mGvN | |
| V+6BdFL6Ao6nLt5IYlFfmuFRk2CXYqvC1qg0kNy/NDAwb5e9HUbPGNXAix5szc= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Chan, Repin, repin, Notes |
| X-HELO: | mail-it0-f51.google.com |
| X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=k9IIuRTQd7qqsv6glUqeuGubabFmUm2aGJdRya9beak=; b=YLJNveQK9ipZHPpg21fpXzf8gH5Zx5VRvHjBCEV8r/C2s6ikRpPILdsZ/K5FFfWYRD FTvT7oOADBvOP+eC8vIsYIMt+zHv1uo0TSD6VkYlrnGy72aY4pzaCn/koLk3+QDCA0ji fdRUdPgowfWdFIYjz1+MXmUYcNv2ZrT60Gg5PZMQHrAg6HzzYh3UE7cMsceskToyJ/1I xvZ4AUW7jmphbdOvIqv7pObkjrDwmckgPqV/+weAnzAYLn+C1sj7Xdgt/UtVM3Dv0pGC I5HJYdm/G8WRpI42RzQI6Y/qxLJyHabpZjPxpi6T/srjVL/R2Psh6+ztpajMKdQOszHW z2gQ== |
| X-Gm-Message-State: | AKS2vOy6Xu4MjTbAAcwk5dJykZLZ0/gXt3bgsgKolrBk2RUN+4LNkSHG L4i/mdoj5JlwzGDnae80fySg5C3fblMEvYI= |
| X-Received: | by 10.36.7.149 with SMTP id f143mr9324376itf.97.1498250247986; Fri, 23 Jun 2017 13:37:27 -0700 (PDT) |
| MIME-Version: | 1.0 |
| In-Reply-To: | <1289429888.20170623122953@yandex.ru> |
| References: | <CAN7+SyJeqSOK+y_0PoTJZDiJf5V6LQWhk_6x_Ac+=uYHnOs8mw AT mail DOT gmail DOT com> <1289429888 DOT 20170623122953 AT yandex DOT ru> |
| From: | Jonathan Chan <jdc DOT d3v AT gmail DOT com> |
| Date: | Fri, 23 Jun 2017 13:37:26 -0700 |
| Message-ID: | <CAN7+SyJCaM4R8Pd3O13FoM8FBfKeHLGJOiXtD1-S7M=Wr4DJBA@mail.gmail.com> |
| Subject: | Re: git-2.12.3-1: Cannot push to a remote with a Windows network path URL |
| To: | cygwin AT cygwin DOT com |
Thanks for the quick response :)
$ git remote -vv
origin file:////network/path/to/git-repository (fetch)
origin file:////network/path/to/git-repository (push)
> Your URL is invalid.
> Try file://network/path/to/git-repository
$ git remote add testing file://network/path/to/git-repository
$ git remote -vv
origin file:////network/path/to/git-repository (fetch)
origin file:////network/path/to/git-repository (push)
testing file://network/path/to/git-repository (fetch)
testing file://network/path/to/git-repository (push)
$ git fetch origin
$ git fetch testing
fatal: '/path/to/git-repository' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
To be thorough:
$ git remote set-url testing //network/path/to/git-repository
$ git remote -vv
origin file:////network/path/to/git-repository (fetch)
origin file:////network/path/to/git-repository (push)
testing //network/path/to/git-repository (fetch)
testing //network/path/to/git-repository (push)
$ git push testing test:master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 276 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 //network/path/to/git-repository
! [remote rejected] test -> master (unpacker error)
error: failed to push some refs to '//network/path/to/git-repository'
Fetching works with both "origin" and "testing" remotes. Pushing does not.
To be even more thorough:
$ cd ~/Temp
$ git clone file:////network/path/to/git-repository
Cloning into 'git-repository'...
remote: Counting objects: 53426, done.
remote: Compressing objects: 100% (10982/10982), done.
remote: Total 53426 (delta 32970), reused 53361 (delta 32921)
Receiving objects: 100% (53426/53426), 33.85 MiB | 8.15 MiB/s, done.
Resolving deltas: 100% (32970/32970), done.
Checking out files: 100% (2240/2240), done.
$ rm -rf git-repository
$ git clone file://network/path/to/git-repository
Cloning into 'emf'...
fatal: '/path/to/git-repository' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So cloning works with the "file:////..." URL.
On Fri, Jun 23, 2017 at 2:29 AM, Andrey Repin <anrdaemon AT yandex DOT ru> wrote:
> Greetings, Jonathan Chan!
>
>> 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'
>
> Your URL is invalid.
> Try 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.
>
>
> --
> With best regards,
> Andrey Repin
> Friday, June 23, 2017 12:28:54
>
> Sorry for my terrible english...
>
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |