Re: [git-users] Help needed, doing a clone --depth

2016-09-05 Thread Philip Oakley

see in line

- Original Message - 
From: "Michael" <keybou...@gmail.com>

To: <git-users@googlegroups.com>
Sent: Sunday, September 04, 2016 11:57 PM
Subject: Re: [git-users] Help needed, doing a clone --depth


Ok, with debugging info. Can anyone tell me what I'm doing wrong / what will 
fix this?


keybounceMBP:git michael$ GIT_TRACE=2 GIT_CURL_VERBOSE=2 
GIT_TRACE_PERFORMANCE=2 GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PACKET=2 
GIT_TRACE_PACKFILE=2 GIT_TRACE_SETUP=2 GIT_TRACE_SHALLOW=2 git 
clone --verbose --depth 1  --shallow-submodules 
git://git.ffmpeg.org/rtmpdump
15:55:07.266869 git.c:350   trace: built-in: git 'clone' 
'--verbose' '--depth' '1' '--shallow-submodules' 
'git://git.ffmpeg.org/rtmpdump'

Cloning into 'rtmpdump'...
Looking up git.ffmpeg.org ... done.
Connecting to git.ffmpeg.org (port 9418) ... 79.124.17.100 done.
15:55:07.694052 pkt-line.c:80   packet:clone> 
git-upload-pack /rtmpdump\0host=git.ffmpeg.org\0
15:55:07.903022 pkt-line.c:80   packet:clone< 
fa8646daeb19dfd12c181f7d19de708d623704c0 HEAD\0multi_ack thin-pack side-band 
side-band-64k ofs-delta shallow no-progress include-tag multi_ack_detailed 
symref=HEAD:refs/heads/master agent=git/1.9.1


*** Here ^^^ it tells you what capabilities the server has. These are 
explained in 
https://github.com/git/git/blob/master/Documentation/technical/protocol-capabilities.txt.
You will see that agent=git/1.9.1 means that the server is still at version 
1.9.1 (which is now ooold). So maybe one of your options isn't known to it.


15:55:08.314219 pkt-line.c:80   packet:clone< 
1e4531d80506eddaede706f1625ca020254d0b84 refs/heads/1.x
15:55:08.314244 pkt-line.c:80   packet:clone< 
e2d22da410b9ca9a723d46cbf1ea3f22f7116f21 refs/heads/1.x@60
15:55:08.314252 pkt-line.c:80   packet:clone< 
d044c11fd1194a9e8a039a18dedfc5a266aa4711 refs/heads/1.x@63
15:55:08.314258 pkt-line.c:80   packet:clone< 
fa8646daeb19dfd12c181f7d19de708d623704c0 refs/heads/master

15:55:08.314264 pkt-line.c:80   packet:clone< 
15:55:08.316463 shallow.c:313   shallow: prepare_shallow_info
15:55:08.317204 pkt-line.c:80   packet:clone> want 
fa8646daeb19dfd12c181f7d19de708d623704c0 multi_ack_detailed side-band-64k 
thin-pack include-tag ofs-delta agent=git/2.9.3
15:55:08.317214 pkt-line.c:80   packet:clone> want 
fa8646daeb19dfd12c181f7d19de708d623704c0

15:55:08.317238 pkt-line.c:80   packet:clone> deepen 1
15:55:08.317241 pkt-line.c:80   packet:clone> 
15:55:08.513711 pkt-line.c:80   packet:clone< shallow 
fa8646daeb19dfd12c181f7d19de708d623704c0

15:55:08.709485 pkt-line.c:80   packet:clone< 
15:55:08.709516 pkt-line.c:80   packet:clone> done
15:55:08.905499 pkt-line.c:80   packet:clone< NAK
15:55:08.905767 run-command.c:336   trace: run_command: '--shallow-file' 
'/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git/shallow.lock' 
'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 82708 on 
keybounceMBP'
15:55:08.906301 exec_cmd.c:120  trace: exec: 'git' '--shallow-file' 
'/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git/shallow.lock' 
'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 82708 on 
keybounceMBP'

fatal: The remote end hung up unexpectedly

*** here ^^^ is the 'hung up unexpectedly' so the issue is before here.

I don't find '--shallow-file' in the documentation - where did you get the 
command from (stackoverflow, a manual page, etc)?
Side thought - this may be an internal command for a new capability within 
the sub-modules that is after the server's v1.9.1!


OK see https://github.com/git/git/blob/master/shallow.c#L52-L56 blame shows 
https://github.com/git/git/commit/6035d6aad8ca11954c0d7821f6f3e7c047039c8f 
which is part of 1.8.3.2, so maybe can't be that.



Digs again...
let's try for 'shallow-submodules' - it's mentioned as an option at 
https://github.com/git/git/blob/master/builtin/clone.c#L96 and blame then 
shows 
https://github.com/git/git/commit/d22eb044750631f30bdbfc3dc42d684e73d18ddc 
which was only this year in v2.9.0, so may be the source of the issue.


Try without the 'shallow-submodules' option?

15:55:08.911781 trace.c:318 setup: git_dir: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git
15:55:08.912179 trace.c:319 setup: git_common_dir: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git
15:55:08.912183 trace.c:320 setup: worktree: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git
15:55:08.912186 trace.c:321 setup: cwd: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft

Re: [git-users] Help needed, doing a clone --depth

2016-09-04 Thread Martin Møller Skarbiniks Pedersen
On 4 September 2016 at 18:18, Michael  wrote:

> git  clone --verbose --depth 1  --shallow-submodules git://
> git.ffmpeg.org/rtmpdump
>

It also fails for me without any good reason.
However the whole repository it only 1.7MB

Regards
Martin


-- 
Til uvedkommende, der læser med: Der er ingen grund til at læse min
mail. Jeg har intet at gøre med FARC, al-Jihad, al-Qaida, Hamas, Hizb
al-Mujahidin eller ETA. Jeg har aldrig gjort Zakat, går ikke ind for
Istishad, har ikke lavet en bilbombe eller kernevåben og jeg ved
dårligt nok, hvad Al Manar og бомба betyder.  Men tak for den udviste
interesse.

Leve Ligemageriet!
Styrk pøbelvældet!
Bevar misundelsesafgifterne og cafepengene!
Hurra for ældrebyrden!

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Help needed, doing a clone --depth

2016-09-04 Thread Michael
Ok, with debugging info. Can anyone tell me what I'm doing wrong / what will 
fix this?

keybounceMBP:git michael$ GIT_TRACE=2 GIT_CURL_VERBOSE=2 
GIT_TRACE_PERFORMANCE=2 GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PACKET=2 
GIT_TRACE_PACKFILE=2 GIT_TRACE_SETUP=2 GIT_TRACE_SHALLOW=2 git  clone --verbose 
--depth 1  --shallow-submodules git://git.ffmpeg.org/rtmpdump
15:55:07.266869 git.c:350   trace: built-in: git 'clone' 
'--verbose' '--depth' '1' '--shallow-submodules' 'git://git.ffmpeg.org/rtmpdump'
Cloning into 'rtmpdump'...
Looking up git.ffmpeg.org ... done.
Connecting to git.ffmpeg.org (port 9418) ... 79.124.17.100 done.
15:55:07.694052 pkt-line.c:80   packet:clone> git-upload-pack 
/rtmpdump\0host=git.ffmpeg.org\0
15:55:07.903022 pkt-line.c:80   packet:clone< 
fa8646daeb19dfd12c181f7d19de708d623704c0 HEAD\0multi_ack thin-pack side-band 
side-band-64k ofs-delta shallow no-progress include-tag multi_ack_detailed 
symref=HEAD:refs/heads/master agent=git/1.9.1
15:55:08.314219 pkt-line.c:80   packet:clone< 
1e4531d80506eddaede706f1625ca020254d0b84 refs/heads/1.x
15:55:08.314244 pkt-line.c:80   packet:clone< 
e2d22da410b9ca9a723d46cbf1ea3f22f7116f21 refs/heads/1.x@60
15:55:08.314252 pkt-line.c:80   packet:clone< 
d044c11fd1194a9e8a039a18dedfc5a266aa4711 refs/heads/1.x@63
15:55:08.314258 pkt-line.c:80   packet:clone< 
fa8646daeb19dfd12c181f7d19de708d623704c0 refs/heads/master
15:55:08.314264 pkt-line.c:80   packet:clone< 
15:55:08.316463 shallow.c:313   shallow: prepare_shallow_info
15:55:08.317204 pkt-line.c:80   packet:clone> want 
fa8646daeb19dfd12c181f7d19de708d623704c0 multi_ack_detailed side-band-64k 
thin-pack include-tag ofs-delta agent=git/2.9.3
15:55:08.317214 pkt-line.c:80   packet:clone> want 
fa8646daeb19dfd12c181f7d19de708d623704c0
15:55:08.317238 pkt-line.c:80   packet:clone> deepen 1
15:55:08.317241 pkt-line.c:80   packet:clone> 
15:55:08.513711 pkt-line.c:80   packet:clone< shallow 
fa8646daeb19dfd12c181f7d19de708d623704c0
15:55:08.709485 pkt-line.c:80   packet:clone< 
15:55:08.709516 pkt-line.c:80   packet:clone> done
15:55:08.905499 pkt-line.c:80   packet:clone< NAK
15:55:08.905767 run-command.c:336   trace: run_command: '--shallow-file' 
'/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git/shallow.lock'
 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 82708 on 
keybounceMBP'
15:55:08.906301 exec_cmd.c:120  trace: exec: 'git' '--shallow-file' 
'/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git/shallow.lock'
 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 82708 on 
keybounceMBP'
fatal: The remote end hung up unexpectedly
15:55:08.911781 trace.c:318 setup: git_dir: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git
15:55:08.912179 trace.c:319 setup: git_common_dir: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git
15:55:08.912183 trace.c:320 setup: worktree: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git
15:55:08.912186 trace.c:321 setup: cwd: 
/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git
15:55:08.912191 trace.c:322 setup: prefix: (null)
15:55:08.912194 git.c:350   trace: built-in: git 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 82708 on keybounceMBP'
fatal: early EOF
15:55:08.912492 trace.c:420 performance: 0.000988000 s: git 
command: 'git' '--shallow-file' 
'/Volumes/UserData/Users/michael/Documents/Games/Minecraft/Modding/git/rtmpdump/.git/shallow.lock'
 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 82708 on 
keybounceMBP'
fatal: index-pack failed
15:55:08.914309 trace.c:420 performance: 1.64745 s: git 
command: 'git' 'clone' '--verbose' '--depth' '1' '--shallow-submodules' 
'git://git.ffmpeg.org/rtmpdump'



-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Help needed, doing a clone --depth

2016-09-04 Thread Michael

On 2016-09-04, at 3:43 PM, Philip Oakley  wrote:

> Do you need it to be depth 1 with shallow submodules?

I only want the current head, for compiling. I don't need any of the history. I 
won't be contributing anything.

> 
> For a whole load of extra environment variables you can set look at :
> 
> www.public-inbox.org/git/caflwv1wc5kq5tw1wnwppujithc05drhtzg989uwj6-hmz85...@mail.gmail.com
> 
> (CURL_VERBOSE and TRACE are commonly recommended)

Thank you.

---
Entertaining minecraft videos
http://YouTube.com/keybounce

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Help needed, doing a clone --depth

2016-09-04 Thread Philip Oakley

Do you need it to be depth 1 with shallow submodules?

For a whole load of extra environment variables you can set look at :

www.public-inbox.org/git/caflwv1wc5kq5tw1wnwppujithc05drhtzg989uwj6-hmz85...@mail.gmail.com

(CURL_VERBOSE and TRACE are commonly recommended)



- Original Message - 
From: "Michael" <keybou...@gmail.com>

To: <git-users@googlegroups.com>
Sent: Sunday, September 04, 2016 5:18 PM
Subject: [git-users] Help needed, doing a clone --depth


I am trying to check out the current rtmpdump, so I can compile the head 
(the 2.4 release is over a year old and does not work properly with 
youtube-dl).


Here's what happened:

keybounceMBP:git michael$ git  clone --verbose --depth 
  --shallow-submodules git://git.ffmpeg.org/rtmpdump

Cloning into 'rtmpdump'...
Looking up git.ffmpeg.org ... done.
Connecting to git.ffmpeg.org (port 9418) ... 79.124.17.100 done.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
keybounceMBP:git michael$

What am I doing wrong?

---
Entertaining minecraft videos
http://YouTube.com/keybounce

--
You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Help needed, doing a clone --depth

2016-09-04 Thread Michael
I am trying to check out the current rtmpdump, so I can compile the head (the 
2.4 release is over a year old and does not work properly with youtube-dl).

Here's what happened:

keybounceMBP:git michael$ git  clone --verbose --depth 1  --shallow-submodules 
git://git.ffmpeg.org/rtmpdump
Cloning into 'rtmpdump'...
Looking up git.ffmpeg.org ... done.
Connecting to git.ffmpeg.org (port 9418) ... 79.124.17.100 done.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
keybounceMBP:git michael$ 

What am I doing wrong?

---
Entertaining minecraft videos
http://YouTube.com/keybounce

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.