Fix config caching so that get, set, get works
[stgit/ydirson.git] / t / t2200-rebase.sh
blob52462dd94926e9340d9cd19855644a1cd984b9f4
1 #!/bin/sh
3 # Copyright (c) 2007 Yann Dirson
6 test_description='Test the "rebase" command.'
8 . ./test-lib.sh
10 test_expect_success \
11 'Setup a multi-commit branch and fork an stgit stack' \
13 echo foo > file1 &&
14 git add file1 &&
15 git commit -m a &&
16 echo foo > file2 &&
17 git add file2 &&
18 git commit -m b &&
20 stg branch --create stack &&
21 stg new p -m . &&
22 echo bar >> file1 &&
23 stg refresh
26 test_expect_success \
27 'Rebase to previous commit' \
29 stg rebase master~1 &&
30 test `stg id base@stack` = `git rev-parse master~1`
33 test_done