dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
prj-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58482f6
)
Git-style only one argument for script.
author
Rafał Długołęcki
<kontakt@dlugolecki.net.pl>
Fri, 1 Mar 2013 15:53:43 +0000
(16:53 +0100)
committer
Rafał Długołęcki
<kontakt@dlugolecki.net.pl>
Fri, 1 Mar 2013 15:53:43 +0000
(16:53 +0100)
prj-create-repo.pl
patch
|
blob
|
history
diff --git
a/prj-create-repo.pl
b/prj-create-repo.pl
index bf083c13e5618a458e366bade4804a5f7599f460..fc8e6239dc448f465a7508d90fc2398fa30c4d24 100755
(executable)
--- a/
prj-create-repo.pl
+++ b/
prj-create-repo.pl
@@
-5,10
+5,11
@@
use warnings;
use Config::General;
use Net::SSH::Perl;
-# prj-create-repo.pl "login@host
" "
path/project.git"
+# prj-create-repo.pl "login@host
:
path/project.git"
my ($login, $host) = split(/@/, shift);
-my $path = shift;
+my $path;
+($host, $path) = split(/:/, $host);
print "Logging to $host...\n";
my $ssh = Net::SSH::Perl->new($host, debug => 0);