improve import_rep script to push all branches and...
...all tags
... | ... |
@@ -91,9 +91,20 @@ for my $rep (glob "$rep_dir/*") { |
91 | 91 |
chdir $rep |
92 | 92 |
or warn "Can't change directory $rep: $!\n"; |
93 | 93 |
my $remote_rep = "$FindBin::Bin/../data/rep/$user/$project.git"; |
94 |
- my @cmd = ('git', 'push', '-u', $remote_rep, 'master'); |
|
95 |
- system(@cmd) == 0 |
|
96 |
- or warn "Can't push repository: @cmd"; |
|
94 |
+ |
|
95 |
+ # push branches |
|
96 |
+ { |
|
97 |
+ my @cmd = ('git', 'push', $remote_rep, '--all'); |
|
98 |
+ system(@cmd) == 0 |
|
99 |
+ or warn "Can't push branches: @cmd"; |
|
100 |
+ } |
|
101 |
+ |
|
102 |
+ # push tags |
|
103 |
+ { |
|
104 |
+ my @cmd = ('git', 'push', $remote_rep, '--tags'); |
|
105 |
+ system(@cmd) == 0 |
|
106 |
+ or warn "Can't push tags: @cmd"; |
|
107 |
+ } |
|
97 | 108 |
} |
98 | 109 |
} |
99 | 110 |
|
... | ... |
@@ -0,0 +1 @@ |
1 |
+./import_rep -u kimoto3 ../../gitprep_t_rep_home/kimoto |