Re: git fetch with Lily-git.tcl

2012-04-16 Thread Graham Percival
On Mon, Apr 16, 2012 at 09:01:15PM +0100, James wrote:
> I kept a few mails that David sent a few months back and he suggested
> 
> git fetch --depth=100

David was wrong.  [correction: or rather, David was answering the
question you asked, not the question you should have been asking]
In that case, you should have deleted your git repository and done
a fresh git clone.  It's simply not worth trying to play games
with git unless you know what you're doing (or unless you'd rather
play games with git tutorials rather than working on lilypond,
which is perfectly fair!).

> --snip--
> git remote add -t $originHead \
> origin git://git.sv.gnu.org/lilypond.git
> git fetch
> git reset --hard origin/$originHead
> --snip--

I hope this does exactly the same thing as
  git clone git://git.sv.gnu.org/lilypond.git
if not, we should fix it.

> I wondered if we should inspite (or because of?) Lily-git being aimed
> beginner devs that adding the extra --depth command? or would that be
> harmful?

There should be no --depth command.  lily-git.tcl should get all
the history, for all branches.  I'm not certain if it actually
does this or not, but that's the plan.

A long time ago, I asked for a different setup (only one branch,
only a little bit of history), and people humored me.  The
evidence from the past few years shows that this was a mistake;
it's simply not worth trying to play games with git unless you
know what you're doing.

- Graham

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


git fetch with Lily-git.tcl

2012-04-16 Thread James
Hello,

I was struggling a bit this morning getting my lilydev env to work
with patchy, once I had deleted my $LILYPOND_GIT (because git was
reporting read errors on a hash).

After a bit of head scratching and then realising I hadn't set up the
ssh part, I still was struggling to get patchy to even start.

It kept complaining abuot the old

'shallow repository' :)

gitk and git index only showed the last two commits in both staging
and master (which happened to be identical).

I kept a few mails that David sent a few months back and he suggested

git fetch --depth=100

Which seemed to do the trick, gitk showed everything and patchy worked
again - huzzah!

Now I looked at Lily-git and found the lines where the 'update' button
doubles as 'get source' and it has the following

--snip--

...
git remote add -t $originHead \
origin git://git.sv.gnu.org/lilypond.git
git fetch
git reset --hard origin/$originHead

...

--snip--

I wondered if we should inspite (or because of?) Lily-git being aimed
beginner devs that adding the extra --depth command? or would that be
harmful?

It seems Patchy needs it (or did in my case) if you jump right in and
follow the CG and then try to get patchy running.

James

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel