Skip to content

Commit f915488

Browse files
committed
Update pre-push
1 parent ef4924e commit f915488

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/pre-push

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh -e
22

3-
git pull --rebase
3+
# On a feature branch that has no remote yet, this first part would fail.
4+
git pull --rebase || git pull --rebase origin master
45

56
# Prevent push on failed Jekyll build.
67
make build

0 commit comments

Comments
 (0)