git-pull-scripton commit [PATCH] Make "git pull" and "git fetch" default to origin (92c533e)
   1#!/bin/sh
   2#
   3. git-sh-setup-script || die "Not a git archive"
   4git-fetch-script "$@" || exit 1
   5merge_head=$(sed -e 's/ .*//' "$GIT_DIR"/FETCH_HEAD | tr '\012' ' ')
   6merge_name=$(sed -e 's/^[0-9a-f]*       //' "$GIT_DIR"/FETCH_HEAD |
   7         tr '\012' ' ')
   8
   9case "$merge_head" in
  10'' | *' '?*) die "Cannot resolve multiple heads at the same time (yet)." ;;
  11esac
  12
  13
  14git-resolve-script \
  15        "$(cat "$GIT_DIR"/HEAD)" \
  16        $merge_head "Merge $merge_name"