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
b1efe7ae
Commit
b1efe7ae
authored
Oct 21, 2021
by
Zach van Rijn
Browse files
cgit.a.o: display all branches
parent
958711cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
cgit.adelielinux.org/update
View file @
b1efe7ae
...
...
@@ -32,8 +32,15 @@ sync ()
cd
"
${
DATA
}
"
;
mkdir
-p
${
1
}
;
cd
${
1
}
;
test
-d
${
name
%.*
}
||
git clone
${
repo
}
${
name
%.*
}
;
(
cd
${
name
%.*
}
&&
git pull
&&
printf
>
.git/description
"%s"
"
${
desc
}
"
)
;
if
!
test
-d
${
name
%.*
}
;
then
mkdir
${
name
%.*
}
;
git clone
--mirror
${
repo
}
${
name
%.*
}
/.git
;
git
-C
${
name
%.*
}
config remote.origin.fetch +refs/heads/
*
:refs/heads/
*
;
git
-C
${
name
%.*
}
config
--add
remote.origin.fetch +refs/tags/
*
:refs/tags/
*
;
else
git
-C
${
name
%.*
}
remote update
--prune
;
fi
printf
>
${
name
%.*
}
/.git/description
"%s"
"
${
desc
}
"
;
printf
>>
"
${
HAVE
}
"
"%s/%s
\n
"
"
${
1
}
"
"
${
name
%.*
}
"
;
)
done
<
"
${
KEEP
}
"
;
...
...
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