Skip to content

Commit 5e438c7

Browse files
committed
Enable HTTP cloning of cloned repos.
1 parent 6be8db9 commit 5e438c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/default/source-mirror.sh.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ -d $local_dir ] ; then
1111
else
1212
mkdir -p `dirname $local_dir`
1313
git clone --shared --bare https://github.com/<%= repo_owner %>/<%= repo %>.git $local_dir
14+
# Make the repo cloneable over vanilla HTTP
15+
cd $local_dir
16+
git update-server-info
17+
cd -
1418
fi
1519
<% end %>
1620
<% end %>

0 commit comments

Comments
 (0)