use own tmp directory to create repository with readme...
...file
... | ... |
@@ -1,7 +1,7 @@ |
1 |
-1.12 |
|
1 |
+1.12 (7 Feb 2016) |
|
2 | 2 |
Catch up latest Github design. |
3 | 3 |
Fix bug that relative image path in README.md and blob html. |
4 |
-1.11 |
|
4 |
+1.11 (7 Nov 2015) |
|
5 | 5 |
- support relative path in README.md and blob html. |
6 | 6 |
- support git version 2 |
7 | 7 |
1.10 (27 Jun 2015) |
... | ... |
@@ -652,11 +652,13 @@ sub _create_rep { |
652 | 652 |
# Add README and commit |
653 | 653 |
if ($opts->{readme}) { |
654 | 654 |
# Create working directory |
655 |
- my $temp_dir = File::Temp->newdir; |
|
655 |
+ my $home_tmp_dir = $self->app->home->rel_file('tmp'); |
|
656 |
+ |
|
657 |
+ my $temp_dir = File::Temp->newdir(DIR => $home_tmp_dir); |
|
656 | 658 |
my $temp_work = "$temp_dir/work"; |
657 | 659 |
mkdir $temp_work |
658 | 660 |
or croak "Can't create directory $temp_work: $!"; |
659 |
- |
|
661 |
+ |
|
660 | 662 |
# Git init |
661 | 663 |
my @git_init_cmd = $git->cmd_rep($temp_work, 'init', '-q'); |
662 | 664 |
Gitprep::Util::run_command(@git_init_cmd) |
... | ... |
@@ -1,31 +0,0 @@ |
1 |
-command="ls",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAurwDPkF1gw5Nf98BhBtPKLBEQ/AdiLIJUEreaa39aWGqzi5s4WBxBP3LMvdvqpMdbnj81ivklJTdlTbKuP4EkhVaXAtB0bw1m/oHPFpp2lH772Bj7ToZQc9omW0bqpP7CtRHCBlf10RIFnhB6ugHSETo4C/esL7OQPThHYvRd8lCGTFq9/4sVd1fWbTcreyXhQA669W+w//xNWla2KnO6+4i/P15SlZfvlgwkziaUHQRZXeVJ0toKuvQRjw5XI18Q3fORnlPALAL4ZV2vUA2Nh4wQGeEkMnXVKF92h+JrXG01filfvnPZZzSnIzVMEyA5ZHV1GhOFUzsogsBKhWrOw== gitprep@www7402u.sakura.ne.jp |
|
2 |
- |
|
3 |
-# gitolite start |
|
4 |
-command="/home/git/gitolite/src/gitolite-shell yuku_t", |
|
5 |
-no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty |
|
6 |
-ssh-rsa AAAAB3NzaC1y...== yuku_t |
|
7 |
-# gitolite end |
|
8 |
- |
|
9 |
-ssh -p55555 -i ~/tmp/id_rsa_gitprep2 59.106.185.196 |
|
10 |
- |
|
11 |
- |
|
12 |
-ssh -p55555 -i ~/tmp/id_rsa_gitprep2 git clone ssh://gitprep@59.106.185.196:55555/home/gitprep/labo/gitprep/data/rep/kimoto/gitprep_t.git |
|
13 |
- |
|
14 |
-ssh -p55555 -i ~/tmp/id_rsa_gitprep2 git-upload-pack gitprep_t.git |
|
15 |
- |
|
16 |
- |
|
17 |
-ssh -p55555 59.106.185.196 |
|
18 |
- |
|
19 |
- |
|
20 |
-git clone ssh://gitprep@59.106.185.196:55555/gitprep_t.git |
|
21 |
- |
|
22 |
- |
|
23 |
-���ϐ� GIT_SSH |
|
24 |
- |
|
25 |
-~/.ssh/config �͑�ϕ֗��ł����A Git �Ƃ͖��W�� SSH �ڑ����ɂ�Q�Ƃ����̂ŕs�s���Ȃ��Ƃ���܂��B�ʂ̕�@�Ƃ��āA GIT_SSH ���ϐ��� SSH �̃��b�p�[�X�N���v�g��w�肷�邱�Ƃ��ł��܂��B |
|
26 |
- |
|
27 |
-git-ssh.sh |
|
28 |
-#!/bin/sh |
|
29 |
-exec ssh -oIdentityFile=~/.ssh/github_id_rsa "$@" |
|
30 |
-$ GIT_SSH=git-ssh.sh git push git@github.com:kyanny/hello.git master |
|
31 |
- |