fork: Fetch origin after forking

This commit is contained in:
Yi EungJun 2016-07-26 10:36:56 +09:00
parent 362e08a2b6
commit dbf87bf94e

View file

@ -37,6 +37,7 @@ curl -X POST -u "$user" "https://api.github.com/repos/$owner/$project/forks"
if [ "$origin" = true ]; then
git remote rename origin upstream
git remote add origin "https://github.com/$user/$project"
git fetch origin
else
# clone forked repo into current dir
git clone "https://github.com/$user/$project" "$project"