Clean up some old files
This commit is contained in:
parent
6480a4b0bb
commit
13309fa706
Binary file not shown.
|
@ -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"));
|
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
echo(gzuncompress(file_get_contents("/home/occupy/testrepo.git/objects/38/a58ccb2a85db94a5bbf111de14aff158a11e90")));
|
|
||||||
?>
|
|
Loading…
Reference in a new issue