You need to sign in or sign up before continuing.
Commit 6865c68a authored by Bruno's avatar Bruno

Merge pull request #475 from derekstavis/issue-474

fix issue #474 by using pushd/popd
parents 189a1856 a364b8c7
...@@ -7,7 +7,9 @@ function omf.git ...@@ -7,7 +7,9 @@ function omf.git
git clone --quiet $repo_url $path ^ /tmp/oh-my-fish.clone.log git clone --quiet $repo_url $path ^ /tmp/oh-my-fish.clone.log
case '--update' case '--update'
set -l path $argv[2] set -l path $argv[2]
return (cd $path; and git pull --quiet --rebase > /dev/null; echo $status) return (pushd $path; and git pull --quiet --rebase > /dev/null
echo $status
popd > /dev/null)
case '*' case '*'
omf.log red 'Unknown option' omf.log red 'Unknown option'
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment