]> git.phdru.name Git - git-scripts.git/commitdiff
Fix setting upstream branch
authorOleg Broytman <phd@phdru.name>
Sat, 16 Jul 2016 23:36:17 +0000 (02:36 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 16 Jul 2016 23:36:17 +0000 (02:36 +0300)
git branch --set-upstream-to requires that remote-tracking branch
web/master already exists. Use git push -u instead.

publish2web

index 567cf14736f4ba5be39d433c78a80a55319e3909..b7bd785d17b33f68678c24b9ecb535fda4ca671f 100755 (executable)
@@ -49,4 +49,4 @@ if [ -n "$directories" ]; then
    dest_dir="$directories/$dest_dir"
 fi &&
 git remote add web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir" &&
-exec git branch --set-upstream-to=web/master master
+exec git push --set-upstream web master