Allow "stg add" when we have no stack
[stgit/ydirson.git] / t / t1700-goto-top.sh
blob618ebc7cfc7b15b6b647481cbee10da89035731b
1 #!/bin/sh
3 # Copyright (c) 2006 Ilpo Järvinen
6 test_description='Test goto to the current patch.
10 . ./test-lib.sh
12 test_expect_success \
13 'Initialize the StGIT repository' \
14 'stg init
17 test_expect_success \
18 'Create the first patch' \
20 stg new foo -m "Foo Patch" &&
21 echo foo > test &&
22 stg add test &&
23 stg refresh
26 test_expect_success \
27 'Goto current patch' \
29 stg goto `stg top`
32 test_done