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: Ladislav Hagara <ladislav.hagara AT unob.cz>
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] git feedback
  • Date: Mon, 31 Jul 2006 16:22:53 +0200

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.



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




Archive powered by MHonArc 2.6.24.

Top of Page