Skip to content

Commit 4307d0e

Browse files
ikuninclaude
andcommitted
Force the clear on a fresh gh-pages branch
After `checkout --orphan` every file is staged, so plain `git rm` refuses and the first publish never got past creating the branch. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sro1PDyoeYHHTiQ8nKGzcR
1 parent 32a13b1 commit 4307d0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main():
6666
# kit's history.
6767
run("git", "clone", "--depth", "1", args.remote, checkout)
6868
run("git", "checkout", "--orphan", BRANCH, cwd=checkout)
69-
run("git", "rm", "-rq", "--ignore-unmatch", ".", cwd=checkout)
69+
run("git", "rm", "-rqf", "--ignore-unmatch", ".", cwd=checkout)
7070
with open(os.path.join(checkout, ".nojekyll"), "w") as handle:
7171
handle.write("") # serve _-prefixed paths and skip Jekyll
7272
with open(os.path.join(checkout, "index.html"), "w") as handle:

0 commit comments

Comments
 (0)