|
@@ -46,6 +46,9 @@ rewrite_uri_to () {
|
46
|
46
|
| perl -pe "s|[^/]+$|$1|;"
|
47
|
47
|
}
|
48
|
48
|
|
|
49
|
+think() {
|
|
50
|
+ $verbose && echo "$@"
|
|
51
|
+}
|
49
|
52
|
|
50
|
53
|
## initz
|
51
|
54
|
#
|
|
@@ -68,6 +71,10 @@ do
|
68
|
71
|
sibling=$2
|
69
|
72
|
shift 2
|
70
|
73
|
;;
|
|
74
|
+ -v|--verbose)
|
|
75
|
+ verbose=true
|
|
76
|
+ shift
|
|
77
|
+ ;;
|
71
|
78
|
"")
|
72
|
79
|
break
|
73
|
80
|
;;
|
|
@@ -89,5 +96,5 @@ pushd "$sibling" >/dev/null
|
89
|
96
|
new_remote=$(rewrite_uri_to $project)
|
90
|
97
|
popd >/dev/null
|
91
|
98
|
|
92
|
|
-echo \'git clone $new_remote\'
|
|
99
|
+think \'git clone $new_remote\'
|
93
|
100
|
git clone $new_remote
|