Browse Source

Clean up some old files

master
Sven Slootweg 9 years ago
parent
commit
13309fa706
  1. BIN
      public_html/test.hex
  2. 28
      public_html/test.php
  3. 3
      public_html/test3.php

BIN
public_html/test.hex

28
public_html/test.php

@ -1,28 +0,0 @@
<?php
require("libgit/base.php");
$repo = new GitRepository("/home/occupy/testrepo.git");
//pretty_dump($repo->GetTags());
if(!empty($_GET['sha']))
{
$sha = $_GET['sha'];
}
elseif(!empty($_GET['branch']))
{
$sha = $repo->GetBranch($_GET['branch'])->sha;
}
elseif(!empty($_GET['tag']))
{
$sha = $repo->GetTag($_GET['tag'])->sha;
}
else
{
die();
}
pretty_dump($repo->GetObject($sha));
/*$pack = new GitPack($repo, "pack-8503a2b8cf6e60831dd012afd4d486eb1eddfef8");
pretty_dump($pack->UnpackObject("a6269a2ffd269289d7d026818511fab88718feff"));*/
//pretty_dump($repo->GetObjectForPath($repo->GetBranch("master")->GetTree(), "public_html/css/images/derp"));

3
public_html/test3.php

@ -1,3 +0,0 @@
<?php
echo(gzuncompress(file_get_contents("/home/occupy/testrepo.git/objects/38/a58ccb2a85db94a5bbf111de14aff158a11e90")));
?>
Loading…
Cancel
Save