Skip to content

Commit

Permalink
Fix initial Git cloning
Browse files Browse the repository at this point in the history
At least on Git Bash on Windows, the existing incantations would result in

git clone ' --depth 1' --verbose https://github.com/whatwg/html.git /c/src/html-build/html

which would fail with "too many arguments". The new version results in

git clone --depth=1 --verbose https://github.com/whatwg/html.git /c/src/html-build/html

which works.
  • Loading branch information
domenic committed Feb 14, 2019
1 parent d62c3f9 commit fed080e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ HTML_SOURCE=${HTML_SOURCE:-}
HTML_CACHE=${HTML_CACHE:-$DIR/.cache}
HTML_TEMP=${HTML_TEMP:-$DIR/.temp}
HTML_OUTPUT=${HTML_OUTPUT:-$DIR/output}
HTML_GIT_CLONE_OPTIONS=${HTML_GIT_CLONE_OPTIONS:-"--depth 1"}
HTML_GIT_CLONE_OPTIONS=${HTML_GIT_CLONE_OPTIONS:-"--depth=1"}

# These are used by child scripts, and so we export them
export HTML_CACHE
Expand Down

0 comments on commit fed080e

Please sign in to comment.