Skip to content

Commit

Permalink
Teach git-pull-script about pulling tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Jun 28, 2005
1 parent d6771bd commit 635f67f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions git-pull-script
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ merge_repo=$1

merge_name=$(echo "$1" | sed 's:\.git/*$::')
merge_head=HEAD
type=head
if [ "$2" = "tag" ]; then
type=tag
shift
fi
if [ "$2" ]
then
merge_name="'$2' branch of $merge_name"
merge_head="refs/heads/$2"
merge_name="$type '$2' of $merge_name"
merge_head="refs/{$type}s/$2"
fi

: ${GIT_DIR=.git}
Expand Down

0 comments on commit 635f67f

Please sign in to comment.