From: Randal L. Schwartz Date: Sun, 30 Oct 2005 20:05:45 GMT Subject: Re: git-pull (or cg-fetch?) with exit status Message-ID: <86ll0asrc6.fsf@blue.stonehenge.com> In-Reply-To: <7v3bmiudl1.fsf@assigned-by-dhcp.cox.net> >>>>> "Junio" == Junio C Hamano writes: Junio> old_head=$(git-rev-parse --verify HEAD) && Junio> git-pull -n >/dev/null 2>&1 || exit Junio> new_head=$(git-rev-parse --verify HEAD) Junio> test "$old_head" = "$new_head" || make test install This looks like it might work. I'll try it out next time. Thanks. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!