Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adélie Infrastructure
Container Services
Commits
320e25b5
Commit
320e25b5
authored
Oct 24, 2021
by
Zach van Rijn
Browse files
cgit.a.o: ensure all work is visible
parent
f1fffcfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
cgit.adelielinux.org/update
View file @
320e25b5
...
...
@@ -57,9 +57,11 @@ sync ()
printf
>
${
name
%.*
}
/.git/description
"%s"
"
${
desc
}
"
;
##
# Pack all refs beforehand to ensure they are all visible to cgit in this way.
# Delete '.git/refs/' directory contents (cgit uses 'packed-refs' when empty).
# Find time of latest commit to any branch, and set 'packed-refs' mtime to it.
#
git
-C
${
name
%.*
}
pack-refs
--all
;
find
${
name
%.*
}
/.git/refs
-type
f
-delete
;
when
=
$(
git
-C
${
name
%.*
}
--no-pager
branch
-al
\
|
sed
-e
's/*//g'
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment