* How to repair a shallow clone (?)
@ 2014-12-06 12:23 Torsten Bögershausen
2014-12-07 0:37 ` Trần Ngọc Quân
2014-12-07 11:44 ` Duy Nguyen
0 siblings, 2 replies; 5+ messages in thread
From: Torsten Bögershausen @ 2014-12-06 12:23 UTC (permalink / raw)
To: Git Mailing List
I share a bare repo with Sparkleshare which does an auto-synch.
Now the synch had stopped, and trying to push to the central repo
by hand gives this:
git push origin master
fatal: protocol error: expected old/new/ref, got 'shallow 72fb4080921221293e28a97a0e8c78d6100c5186'
fatal: The remote end hung up unexpectedly
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
error: pack-objects died of signal 13
error: failed to push some refs to xxxxx
Both machines have Git >2.0.0
Is this a known issue/problem ?
I think I started to clone the repo in a shallow way
(SparkleShare asked if I want to clone the complete history,
and I probably answered "no" )
Is there a way to repair this situation ?
(Except doing a complete re-clone ?)
Thanks for help
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to repair a shallow clone (?)
2014-12-06 12:23 How to repair a shallow clone (?) Torsten Bögershausen
@ 2014-12-07 0:37 ` Trần Ngọc Quân
2014-12-07 11:05 ` Philip Oakley
2014-12-07 11:44 ` Duy Nguyen
1 sibling, 1 reply; 5+ messages in thread
From: Trần Ngọc Quân @ 2014-12-07 0:37 UTC (permalink / raw)
To: Torsten Bögershausen; +Cc: Git Mailing List
On 06/12/2014 19:23, Torsten Bögershausen wrote:
> I think I started to clone the repo in a shallow way
> (SparkleShare asked if I want to clone the complete history,
> and I probably answered "no" )
>
> Is there a way to repair this situation ?
> (Except doing a complete re-clone ?)
>
I think git don't accept push from shallow repo. I've ever encounter
this problem. I UNshallow it, then every thing will work:
$ git fetch --unshallow origin
This command will convert a shallow repository to a complete one.
See git-fetch(1) and git-clone(1).
I hope it helpful!
Thanks,
--
Trần Ngọc Quân.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to repair a shallow clone (?)
2014-12-07 0:37 ` Trần Ngọc Quân
@ 2014-12-07 11:05 ` Philip Oakley
0 siblings, 0 replies; 5+ messages in thread
From: Philip Oakley @ 2014-12-07 11:05 UTC (permalink / raw)
To: Trần Ngọc Quân, Torsten Bögershausen
Cc: Git Mailing List
From: "Trần Ngọc Quân" <vnwildman@gmail.com>
> On 06/12/2014 19:23, Torsten Bögershausen wrote:
>> I think I started to clone the repo in a shallow way
>> (SparkleShare asked if I want to clone the complete history,
>> and I probably answered "no" )
>>
>> Is there a way to repair this situation ?
>> (Except doing a complete re-clone ?)
>>
> I think git don't accept push from shallow repo. I've ever encounter
> this problem. I UNshallow it, then every thing will work:
>
> $ git fetch --unshallow origin
>
> This command will convert a shallow repository to a complete one.
> See git-fetch(1) and git-clone(1).
>
Since v1.9.0 (14 Feb '14.) you can do various push/pull from a shallow
clone (I'd asked this way back
http://stackoverflow.com/questions/6900103/why-cant-i-push-from-a-shallow-clone
and noted when it was corrected/improved)
That's not to say that you don't have to take care about your local
depth being sufficiently inclusive.
I'm sure that sometime a --timedepth=<time_t time> will eventually be
coded by someone sufficiently in need. ;-)
--
Philip
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to repair a shallow clone (?)
2014-12-06 12:23 How to repair a shallow clone (?) Torsten Bögershausen
2014-12-07 0:37 ` Trần Ngọc Quân
@ 2014-12-07 11:44 ` Duy Nguyen
2014-12-07 17:53 ` Torsten Bögershausen
1 sibling, 1 reply; 5+ messages in thread
From: Duy Nguyen @ 2014-12-07 11:44 UTC (permalink / raw)
To: Torsten Bögershausen; +Cc: Git Mailing List
On Sat, Dec 6, 2014 at 7:23 PM, Torsten Bögershausen <tboegi@web.de> wrote:
> I share a bare repo with Sparkleshare which does an auto-synch.
> Now the synch had stopped, and trying to push to the central repo
> by hand gives this:
>
>
>
> git push origin master
> fatal: protocol error: expected old/new/ref, got 'shallow 72fb4080921221293e28a97a0e8c78d6100c5186'
> fatal: The remote end hung up unexpectedly
> Counting objects: 4, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (4/4), done.
> error: pack-objects died of signal 13
> error: failed to push some refs to xxxxx
>
> Both machines have Git >2.0.0
Please try again with $GIT_TRACE_PACKET=/some-log-file. receive-pack
>2.0 should recognize this shallow line.
> Is this a known issue/problem ?
No.
--
Duy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to repair a shallow clone (?)
2014-12-07 11:44 ` Duy Nguyen
@ 2014-12-07 17:53 ` Torsten Bögershausen
0 siblings, 0 replies; 5+ messages in thread
From: Torsten Bögershausen @ 2014-12-07 17:53 UTC (permalink / raw)
To: Duy Nguyen, Torsten Bögershausen; +Cc: Git Mailing List
On 2014-12-07 12.44, Duy Nguyen wrote:
>> Is this a known issue/problem ?
>
> No.
>
Thanks everybody for the support.
The machine was equipped with git version 1.7.10.4 in /usr/bin.
I installed 2.1 or so under /usr/local/bin, (and even /root/bin)
thinking that this would help, but it didn't.
Because the login shell for the user "storage" which manages the push/pull
on the server side was /usr/bin/git-shell, not /usr/local/bin/git-shell.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-07 17:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-06 12:23 How to repair a shallow clone (?) Torsten Bögershausen
2014-12-07 0:37 ` Trần Ngọc Quân
2014-12-07 11:05 ` Philip Oakley
2014-12-07 11:44 ` Duy Nguyen
2014-12-07 17:53 ` Torsten Bögershausen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).