Subject | Hash | Author | Date (UTC) |
---|---|---|---|
aa | 63a5cea75e640e6c11975bf6ab1c7bc49747a6bb | Catalin(ux) M. BOIE | 2012-03-26 21:09:23 |
Misc fixes | eac04dc796b2c315b65753025e1e311bc25e83d7 | Catalin(ux) M. BOIE | 2012-03-26 18:14:32 |
Fixes for schema autoupdate | 63d2a1a4f4c0498135a96f1a3d374868dc3d3535 | Catalin(ux) M. BOIE | 2012-03-23 04:19:09 |
Test CSRF token for the rights for a repo. | e2d32e100f724e80ee623f191784ce429156ac39 | Catalin(ux) M. BOIE | 2012-03-22 03:54:37 |
Fixed anon push without create branch rights | 3d474b7a569b16d87a426d4c3b971a50b3299894 | Catalin(ux) M. BOIE | 2012-03-22 03:43:06 |
Use rg_repos for repositories | e5bda9469fddee7f201c22dfd89292830f4c342b | Catalin(ux) M. BOIE | 2012-03-22 03:42:06 |
Corrected <label> tags | 7e8621e79480b8964e04de8c54f10f1a702ea1fd | Catalin(ux) M. BOIE | 2012-03-20 04:25:38 |
Fixed unit testing | 31bfe5672e7d3b620d0e7b3c07ff72d84c149001 | Catalin(ux) M. BOIE | 2012-03-17 17:21:21 |
Fixed hook_update.sh unit testing | 86c4079e81efc5a4a7878e91d8f4318e443961f7 | Catalin(ux) M. BOIE | 2012-03-16 22:32:35 |
Bulk updates | f696473a7faee50782d3cc01e96cc85e7900b3de | Catalin(ux) M. BOIE | 2012-03-14 04:38:23 |
Style changes. | 87e30b1df29b7c6efa438be1cf369192a8068655 | Catalin(ux) M. BOIE | 2012-02-19 22:50:22 |
Bulk | 0923407bff68a58a0b7b034f8a6b4489ece5b237 | Catalin(ux) M. BOIE | 2012-02-12 22:21:44 |
Bulk update | 30310488bca37cefeba96b52b71c9c3e72c32907 | Catalin(ux) M. BOIE | 2011-12-15 23:34:03 |
Profiling tests. | afd1df2940fe440cde9b8ede988ff24c051a10d6 | Catalin(ux) M. BOIE | 2011-11-03 22:10:13 |
More bulk updates. | a2a2e2545eaad61d0c675ea2afb801f207534515 | Catalin(ux) M. BOIE | 2011-11-03 22:09:34 |
Another round of bulk updates. | 45bb00a88c420d439b4dd19971808722e4a70895 | Catalin(ux) M. BOIE | 2011-10-24 22:31:14 |
Bulk update. Mostly css. | 04734cd7cfc4fd4ec55dad70a3490f3065027639 | Catalin(ux) M. BOIE | 2011-10-03 23:18:26 |
Added rg_exec function and converted all calls from exec to rg_exec. | 097157e5886dace2b9f67ca238a1063a3baff4a0 | Catalin(ux) M. BOIE | 2011-09-28 03:28:49 |
Another round of bulk updates | cb9dbb75518ab3c214167646197ca7eb0de8e4e6 | Catalin(ux) M. BOIE | 2011-09-26 19:22:12 |
Bulk updates | cad0c710542dc3fb072268eba40b0abe11217fa9 | Catalin(ux) M. BOIE | 2011-09-21 20:25:23 |
File | Lines added | Lines deleted |
---|---|---|
TODO | 0 | 1 |
hooks/post-receive | 2 | 2 |
inc/git.inc.php | 12 | 0 |
inc/util.inc.php | 17 | 0 |
scripts/remote.php | 1 | 4 |
tests/git.php | 8 | 0 |
tests/git2.php | 8 | 8 |
tests/git2.sh | 10 | 0 |
tests/git2/a | 1 | 0 |
File TODO changed (mode: 100644) (index dc368df..94c2774) | |||
1 | 1 | == BEFORE FIRST RELEASE! == | == BEFORE FIRST RELEASE! == |
2 | 2 | [ ] Make available the merge requests. | [ ] Make available the merge requests. |
3 | 3 | [ ] Add possibility to reject merge requests, to make them public, to delete etc. | [ ] Add possibility to reject merge requests, to make them public, to delete etc. |
4 | [ ] rg_sql_querty must always return an error code! | ||
5 | 4 | [ ] | [ ] |
6 | 5 | ||
7 | 6 | == Normal priority == | == Normal priority == |
File hooks/post-receive changed (mode: 100755) (index b71148d..a349cbb) | |||
... | ... | fclose($f); | |
65 | 65 | $a = array( | $a = array( |
66 | 66 | "op" => "push", | "op" => "push", |
67 | 67 | "itime" => getenv("ROCKETGIT_ITIME"), | "itime" => getenv("ROCKETGIT_ITIME"), |
68 | "uid" => $uid, | ||
69 | "repo_id" => getenv("ROCKETGIT_REPO_ID") | ||
68 | "uid" => getenv("ROCKETGIT_UID"), | ||
69 | "repo_id" => getenv("ROCKETGIT_REPO_ID"), | ||
70 | 70 | "old_rev" => $old_rev, | "old_rev" => $old_rev, |
71 | 71 | "new_rev" => $new_rev, | "new_rev" => $new_rev, |
72 | 72 | "refname" => $refname, | "refname" => $refname, |
File inc/git.inc.php changed (mode: 100644) (index 199c01e..96ce32d) | |||
... | ... | function rg_git_update_branch($a) | |
911 | 911 | } | } |
912 | 912 | } | } |
913 | 913 | ||
914 | /* | ||
915 | * Returns the tags, HEAD and branches | ||
916 | */ | ||
917 | function rg_git_refs($repo_path) | ||
918 | { | ||
919 | $ret = array(); | ||
920 | $ret['tags'] = rg_dir_load($repo_path . "/refs/tags"); | ||
921 | $ret['branches'] = rg_dir_load($repo_path . "/refs/heads"); | ||
922 | |||
923 | return $ret; | ||
924 | } | ||
925 | |||
914 | 926 | ?> | ?> |
File inc/util.inc.php changed (mode: 100644) (index c733018..3c8bb9d) | |||
... | ... | function rg_array2string($a) | |
484 | 484 | return $ret; | return $ret; |
485 | 485 | } | } |
486 | 486 | ||
487 | /* | ||
488 | * Load files from a folder | ||
489 | */ | ||
490 | function rg_dir_load($dir) | ||
491 | { | ||
492 | $ret = array(); | ||
493 | $d = scandir($dir); | ||
494 | foreach ($d as $file) { | ||
495 | if ((strcmp($file, ".") == 0) || (strcmp($file, "..") == 0)) | ||
496 | continue; | ||
497 | |||
498 | $ret[] = $file; | ||
499 | } | ||
500 | |||
501 | return $ret; | ||
502 | } | ||
503 | |||
487 | 504 | ?> | ?> |
File scripts/remote.php changed (mode: 100644) (index b8061aa..86bfea7) | |||
... | ... | if ($push == 1) { | |
191 | 191 | if ($ret === FALSE) | if ($ret === FALSE) |
192 | 192 | fatal("Internal error (namespace dir)"); | fatal("Internal error (namespace dir)"); |
193 | 193 | // copy refs | // copy refs |
194 | $dir = scandir($repo_path . "/refs/heads"); | ||
194 | $dir = rg_dir_load($repo_path . "/refs/heads"); | ||
195 | 195 | foreach ($dir as $file) { | foreach ($dir as $file) { |
196 | if ((strcmp($file, ".") == 0) || (strcmp($file, "..") == 0)) | ||
197 | continue; | ||
198 | |||
199 | 196 | rg_log("Copy ref '$file'..."); | rg_log("Copy ref '$file'..."); |
200 | 197 | if (@copy($repo_path . "/refs/heads/" . $file, $dst . "/" . $file) === FALSE) | if (@copy($repo_path . "/refs/heads/" . $file, $dst . "/" . $file) === FALSE) |
201 | 198 | fatal("Internal error (cannot copy refs)"); | fatal("Internal error (cannot copy refs)"); |
File tests/git.php changed (mode: 100644) (index ad4d370..bc83367) | |||
... | ... | if ($r !== TRUE) { | |
15 | 15 | echo "Cannot run rg_git_init (" . rg_git_error() . ")!\n"; | echo "Cannot run rg_git_init (" . rg_git_error() . ")!\n"; |
16 | 16 | exit(1); | exit(1); |
17 | 17 | } | } |
18 | |||
19 | file_put_contents("git.tmp/a", "aaa"); | ||
20 | system("cd git.tmp; git commit -a -m \"aa\"; git checkout -n b1"); | ||
21 | |||
22 | // test rg_git_refs | ||
23 | $refs = rg_git_refs("git.tmp"); | ||
24 | print_r($refs); | ||
25 | |||
18 | 26 | system("rm -rf git.tmp"); | system("rm -rf git.tmp"); |
19 | 27 | ||
20 | 28 |
File tests/git2.php copied from file tests/git.php (similarity 51%) (mode: 100644) (index ad4d370..34b373d) | |||
... | ... | rg_log_set_file("git.log"); | |
9 | 9 | ||
10 | 10 | $rg_scripts = "/usr/share/rocketgit"; | $rg_scripts = "/usr/share/rocketgit"; |
11 | 11 | ||
12 | // check if git-init works | ||
13 | $r = rg_git_init("git.tmp"); | ||
14 | if ($r !== TRUE) { | ||
15 | echo "Cannot run rg_git_init (" . rg_git_error() . ")!\n"; | ||
16 | exit(1); | ||
17 | } | ||
18 | system("rm -rf git.tmp"); | ||
12 | system("./git2.sh"); | ||
19 | 13 | ||
14 | // test rg_git_refs | ||
15 | $refs = rg_git_refs("git2/.git"); | ||
16 | print_r($refs); | ||
20 | 17 | ||
21 | echo "git: OK\n"; | ||
18 | system("rm -rf git2"); | ||
19 | |||
20 | |||
21 | echo "git2: OK\n"; | ||
22 | 22 | ?> | ?> |
File tests/git2.sh added (mode: 100755) (index 0000000..367c88e) | |||
1 | #!/bin/bash | ||
2 | |||
3 | mkdir git2 | ||
4 | cd git2 | ||
5 | git-init | ||
6 | echo "a" > a | ||
7 | git add a | ||
8 | git commit -a -m "aa" | ||
9 | git checkout -b group1/branch1 | ||
10 | git checkout -b group2/subgroup1/branch2 |
File tests/git2/a added (mode: 100644) (index 0000000..7898192) | |||
1 | a |