mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
2f325c38ae
The update mechanism updates master only. If you are working in branch foo, the branch name is saved and restored later. First attempt a naive git pull --rebase origin master, and if that fails, abort the rebase, fetch origin master, reset to head and clean directory.
12 lines
167 B
Fish
12 lines
167 B
Fish
set -g path $DIRNAME/.t-$TESTNAME-(random)
|
|
|
|
function -S setup
|
|
end
|
|
|
|
function -S teardown
|
|
rm -rf $path
|
|
end
|
|
|
|
test "$TESTNAME - Update Git repo at path"
|
|
-z ""
|
|
end
|