t / t5524-pull-msg.shon commit worktree: add: make -b/-B default to HEAD when <branch> is omitted (0f4af3b)
   1#!/bin/sh
   2
   3test_description='git pull message generation'
   4
   5. ./test-lib.sh
   6
   7dollar='$Dollar'
   8
   9test_expect_success setup '
  10        test_commit initial afile original &&
  11        git clone . cloned &&
  12        (
  13                cd cloned &&
  14                echo added >bfile &&
  15                git add bfile &&
  16                test_tick &&
  17                git commit -m "add bfile"
  18        ) &&
  19        test_tick && test_tick &&
  20        echo "original $dollar" >afile &&
  21        git add afile &&
  22        git commit -m "do not clobber $dollar signs"
  23'
  24
  25test_expect_success pull '
  26(
  27        cd cloned &&
  28        git pull --log &&
  29        git log -2 &&
  30        git cat-file commit HEAD >result &&
  31        grep Dollar result
  32)
  33'
  34
  35test_done