Move identification of parent branch's remote def up into stack class.
[stgit] / t / t1700-goto-top.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2006 Ilpo Järvinen
4 #
5
6 test_description='Test goto to the current patch.
7
8 '
9
10 . ./test-lib.sh
11
12 test_expect_success \
13 'Initialize the StGIT repository' \
14 'stg init
15 '
16
17 test_expect_success \
18 'Create the first patch' \
19 '
20 stg new foo -m "Foo Patch" &&
21 echo foo > test &&
22 stg add test &&
23 stg refresh
24 '
25
26 test_expect_success \
27 'Goto current patch' \
28 '
29 stg goto `stg top`
30 '
31
32 test_done