File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,13 @@ jobs:
60
60
# (This keeps mtimes of unchanged files unchanged and mtimes of changed files newer than unchanged files.)
61
61
# Finally we reset the index to "old". (This keeps all mtimes unchanged.)
62
62
# The changed files now show up as uncommitted changes.
63
+ # The final "git add -N" makes sure that files that were added in "new" do not show
64
+ # as untracked files, which would be removed by "git clean -fx".
63
65
git worktree add --detach worktree-image
64
66
rm -rf /sage/.git && mv worktree-image/.git /sage/
65
67
rm -rf worktree-image && ln -s /sage worktree-image
66
68
if [ ! -f worktree-image/.gitignore ]; then cp .gitignore worktree-image/; fi
67
- (cd worktree-image && git add -A && git commit --allow-empty -m "old" -a && git tag -f old && git reset --hard new && git reset old)
69
+ (cd worktree-image && git add -A && git commit --quiet -- allow-empty -m "old" -a && git tag -f old && git reset --hard new && git reset --quiet old && git add -N . && git status )
68
70
69
71
- name : Incremental build, test changed files (sage -t --new)
70
72
id : incremental
Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ jobs:
44
44
# (This keeps mtimes of unchanged files unchanged and mtimes of changed files newer than unchanged files.)
45
45
# Finally we reset the index to "old". (This keeps all mtimes unchanged.)
46
46
# The changed files now show up as uncommitted changes.
47
+ # The final "git add -N" makes sure that files that were added in "new" do not show
48
+ # as untracked files, which would be removed by "git clean -fx".
47
49
git worktree add --detach worktree-image
48
50
rm -rf /sage/.git && mv worktree-image/.git /sage/
49
51
rm -rf worktree-image && ln -s /sage worktree-image
50
52
if [ ! -f worktree-image/.gitignore ]; then cp .gitignore worktree-image/; fi
51
- (cd worktree-image && git add -A && git commit --allow-empty -m "old" -a && git tag -f old && git reset --hard new && git reset old)
53
+ (cd worktree-image && git add -A && git commit --quiet -- allow-empty -m "old" -a && git tag -f old && git reset --hard new && git reset --quiet old && git add -N . && git status )
52
54
# Keep track of changes to built HTML
53
55
(cd /sage/local/share/doc/sage/html/en && find . -name "*.html" | xargs sed -i '/class="sidebar-brand-text"/s/Sage [0-9a-z.]* /Sage dev /'; git init && (echo ".buildinfo"; echo ".inv") > .gitignore; git add -A && git commit --quiet -m "old")
54
56
You can’t perform that action at this time.
0 commit comments