t / t6008-rev-list-submodule.shon commit Merge branch 'gf/maint-sh-setup-nongit-ok' into maint (801bad3)
   1#!/bin/sh
   2#
   3# Copyright (c) 2007 Johannes E. Schindelin
   4#
   5
   6test_description='git rev-list involving submodules that this repo has'
   7
   8. ./test-lib.sh
   9
  10test_expect_success 'setup' '
  11        : > file &&
  12        git add file &&
  13        test_tick &&
  14        git commit -m initial &&
  15        echo 1 > file &&
  16        test_tick &&
  17        git commit -m second file &&
  18        echo 2 > file &&
  19        test_tick &&
  20        git commit -m third file &&
  21
  22        rm .git/index &&
  23
  24        : > super-file &&
  25        git add super-file &&
  26        git submodule add "$(pwd)" sub &&
  27        git symbolic-ref HEAD refs/heads/super &&
  28        test_tick &&
  29        git commit -m super-initial &&
  30        echo 1 > super-file &&
  31        test_tick &&
  32        git commit -m super-first super-file &&
  33        echo 2 > super-file &&
  34        test_tick &&
  35        git commit -m super-second super-file
  36'
  37
  38test_expect_success "Ilari's test" '
  39        git rev-list --objects super master ^super^
  40'
  41
  42test_done