... | ... |
@@ -30,3 +30,5 @@ db/* |
30 | 30 |
extlib/* |
31 | 31 |
rep/* |
32 | 32 |
gitprep.my.ini |
33 |
+rep/* |
|
34 |
+!rep/.gitignore |
... | ... |
@@ -40,7 +40,7 @@ and you must add git command path into config file **gitprep.conf** |
40 | 40 |
|
41 | 41 |
[basic] |
42 | 42 |
;;; Git command path |
43 |
- git_bin=/home/yourname/local/git |
|
43 |
+ git_bin=/home/yourname/local/bin/git |
|
44 | 44 |
|
45 | 45 |
## Upload Server by FTP |
46 | 46 |
|
... | ... |
@@ -42,8 +42,9 @@ sub startup { |
42 | 42 |
# Git command |
43 | 43 |
my $git = Gitprep::Git->new; |
44 | 44 |
my $git_bin = $conf->{basic}{git_bin} ? $conf->{basic}{git_bin} : $git->search_bin; |
45 |
- unless (-e $git_bin) { |
|
46 |
- my $error = "Can't detect or found git command. set git_bin in gitprep.conf"; |
|
45 |
+ if (!$git_bin || ! -e $git_bin) { |
|
46 |
+ $git_bin ||= ''; |
|
47 |
+ my $error = "Can't detect or found git command ($git_bin). set git_bin in gitprep.conf"; |
|
47 | 48 |
$self->log->error($error); |
48 | 49 |
croak $error; |
49 | 50 |
} |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
|
5 | 5 |
<table class="table"> |
6 | 6 |
<tr> |
7 |
- <td><a href="/_admin/user">User</a></td> |
|
7 |
+ <td><a href="<%= url_for('/_admin/user') %>">User</a></td> |
|
8 | 8 |
</tr> |
9 | 9 |
</table> |
10 | 10 |
|