3 test_description
='Check that pulling works when no upstream is configured'
8 test_create_repo upstream
11 'Setup upstream repo, clone it, and add patches to the clone' \
13 (cd upstream && stg init) &&
14 stg clone upstream clone &&
15 (cd clone && git config pull.rebase false)
19 'Test that pull works' \
22 git checkout master &&
28 'Test that pull without upstream setup produces friendly error' \
31 stg branch --create without-upstream &&
32 command_error stg pull 2>out.txt &&
33 grep "There is no tracking information for the current branch" out.txt