t / t3429-rebase-edit-todo.shon commit built-in rebase --autostash: leave the current branch alone if possible (176f5d9)
   1#!/bin/sh
   2
   3test_description='rebase should reread the todo file if an exec modifies it'
   4
   5. ./test-lib.sh
   6
   7test_expect_success 'rebase exec modifies rebase-todo' '
   8        test_commit initial &&
   9        todo=.git/rebase-merge/git-rebase-todo &&
  10        git rebase HEAD -x "echo exec touch F >>$todo" &&
  11        test -e F
  12'
  13
  14test_done