Skip to content

Commit 99f9d11

Browse files
committed
Cleanup
1 parent bfb7f30 commit 99f9d11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

script/sync-translation

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Sync changes from up stream
3+
# Sync changes from upstream and open a pull request
44
#
55
# Usage: script/sync-upstream [remote]
66
#
@@ -9,16 +9,18 @@
99

1010
set -e
1111

12+
which -s hub || (echo "This script requires the 'hub' command: http://hub.github.com/" && exit 1)
13+
1214
# If there's not an upstream remote, set it.
1315
if ! git remote show | grep -q upstream; then
1416
git remote add upstream https://github.com/github/opensource.guide.git
1517
fi
1618

1719
REMOTE=${1:-"origin"}
1820
BASE="$REMOTE/gh-pages"
19-
# TODO: remove once script is working
20-
BASE=42b97f47d15422a27a7ac7acd1e3153efc98dc46 # randomly selected old commit for testing
21-
HEAD="upstream/gh-pages"
21+
# FIXME: switch to upstream/gh-pages before this is merged:
22+
# https://github.com/github/open-source-guide/pull/295
23+
HEAD="upstream/i18n"
2224

2325
git fetch upstream
2426
git fetch $REMOTE

0 commit comments

Comments
 (0)