Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] git feedback

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] git feedback
  • Date: Mon, 31 Jul 2006 17:59:39 +0200

On Mon, Jul 31, 2006 at 04:22:53PM +0200, Ladislav Hagara wrote:
> > This time with an actual attachment ;)
> >
> > #!/bin/sh
> > heads=$(git-ls-remote --heads origin | cut -f2)
>
> "git-ls-remote --heads origin" does not print stable-rc-0.5 and stable-0.4.

Works for me:
arwed@Otherland:~/Work/git/grimoire$ git-ls-remote --heads origin
866d65b55f3d74bdc3b92603e481c6ff1ee1bdac refs/heads/devel
cd42b562b4ca39d7d224d08cf79b6a97a6ecb8c8 refs/heads/master
72fee73c6b6665dff34b0bdfc6552e1a83711d42 refs/heads/stable-0.3
1e9a83ea5a7d825f6f86816e549a2c57afae339d refs/heads/stable-0.4
41170a6a69c8c5a5861cab09804eda54ba937d03 refs/heads/stable-rc-0.4
fd0f298f197525d81fb3d5bcc9a1569c835d0372 refs/heads/stable-rc-0.5


>
> >
> > local_heads=$(ls .git/refs/heads)
> >
> > for refname in $heads; do
> > name=${refname/refs\/heads\/}
> > if [[ $name = master ]]; then continue; fi
> > if ! echo $local_heads | grep -q $name; then
> > git fetch origin $refname:$refname
> > echo "Pull: $refname:$refname" >> .git/remotes/origin
> > fi
> > done
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>

--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page