Browse Source

Initial commit

master
Sven Slootweg 5 years ago
parent
commit
9c818fb5bb
  1. 19
      01.txt
  2. 54
      02.txt
  3. 45
      home.tmpl
  4. 21
      migrate.sh

19
01.txt

@ -0,0 +1,19 @@
node-jsonwebtoken-promisified.git
node-gulp-named-log.git
node-promisify-simple-callback.git
node-combined-stream2.git
node-promise-while-loop.git
node-random-number-csprng.git
node-promise-task-queue.git
node-bhttp.git
node-bluebird-tap-error.git
node-get-exchange-rates.git
node-authored.git
node-ia-headers.git
node-yaorm.git
node-form-data2.git
node-form-fix-array.git
node-stream-length.git
node-cdx.git
node-bitmask-flags.git
node-ia.git

54
02.txt

@ -0,0 +1,54 @@
scrypt-for-humans.git
express-promise-router-bugcase.git
projectlist.git
fancyshelf.git
through2-sink.git
hma-proxy-parse.git
openNG.git
circd-node.git
redonate.git
pastebin-scrape.git
filething.git
radium.git
image-disc.git
crytoteam.git
cphp.git
Nexus.git
wpcom-to-jekyll.git
vpslist.git
zippydoc.git
crytobooks.git
tahoe-s3.git
nzbspider.git
cryto-status.git
circd.git
pytahoe.git
jsde.git
main.git
python-docs.git
box.git
cryto-site.git
todo.git
pyLSA.git
4chandownloader.git
jamendoparser.git
hypervm-migrate.git
pysfx.git
multiloggy.git
anonnews2.git
catarc.git
crytolearn.git
openmedia.git
tahoe-tools.git
nodecontrol.git
crytowhois.git
resolv.git
multipaste.git
emailparser.git
webshots.git
pyreactor.git
scraperscript.git
scantools.git
lighttpdparse.git
beautifulsoup.git
gmhost.git

45
home.tmpl

@ -0,0 +1,45 @@
{{template "base/head" .}}
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div class="hero">
<h1 class="ui icon header title">
Cryto GIT
</h1>
<h3>
A free Git repository hosting service from the <a href="http://cryto.net">Cryto Coding Collective</a>.
</h3>
</div>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide column">
<h1 class="hero ui header">
Getting started
</h1>
<p class="large">
Simply <a href="/user/sign_up">register an account</a>! While no further verification is needed, we will remove any accounts or repositories that abuse this service.
</p>
<h1 class="hero ui header">
Is this free?
</h1>
<p class="large">
Yes. However, we expect you to use it for <em>open-source and non-commercial</em> projects only. This also applies to private repositories.
</p>
</div>
<div class="eight wide column">
<h1 class="hero ui header">
Migrating old repositories
</h1>
<p class="large">
If you registered for the old Gitolite-based Git server, please send an e-mail to <a href="mailto:admin@cryto.net">admin@cryto.net</a>, to have your old repositories migrated to the new server.
</p>
<p class="large">
Note that you will have to slightly change your remote URLs, and that you must still have access to the SSH keypair that you signed up with.
</p>
</div>
</div>
</div>
{{template "base/footer" .}}

21
migrate.sh

@ -0,0 +1,21 @@
HOSTNAME="git.cryto.net"
BASEPATH="/home/git/old-repositories/projects/joepie91"
OWNER_ID="$1"
CSRF=`cat ./cookies.txt | grep _csrf | cut -f 7`
while read REPO; do
REPONAME=`echo "$REPO" | sed "s/\.git\$//"`
curl "https://$HOSTNAME/repo/migrate" \
-b "./cookies.txt" \
-H 'origin: null' \
-H 'content-type: application/x-www-form-urlencoded' \
-H "authority: $HOSTNAME" \
--data "_csrf=$CSRF" \
--data-urlencode "clone_addr=$BASEPATH/$REPO" \
--data-urlencode "uid=$OWNER_ID" \
--data-urlencode "auth_username=" \
--data-urlencode "auth_password=" \
--data-urlencode "repo_name=$REPONAME" \
--data-urlencode "description=Automatically migrated from Gitolite"
done
Loading…
Cancel
Save