* [PATCH Cogito] Strip .git suffix from destination directory
@ 2005-05-09 1:10 Marcel Holtmann
0 siblings, 0 replies; only message in thread
From: Marcel Holtmann @ 2005-05-09 1:10 UTC (permalink / raw)
To: Petr Baudis; +Cc: GIT Mailing List
[-- Attachment #1: Type: text/plain, Size: 213 bytes --]
Hi Petr,
the attached patch brings back the feature where a .git suffix got
stripped from the directory name when cloning another tree.
It also fixes a $samedir vs. $same_dir spelling mistake.
Regards
Marcel
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 592 bytes --]
cg-clone: needs update
Index: cg-clone
===================================================================
--- 00b94eea5b99d5dd1d1bbe9c9ca3502d11aec581/cg-clone (mode:100755)
+++ uncommitted/cg-clone (mode:100755)
@@ -28,10 +28,10 @@
destdir=$2
if [ "$destdir" ]; then
- [ ! "$samedir" ] || die "specifying both -s and DESTDIR makes no sense"
+ [ ! "$same_dir" ] || die "specifying both -s and DESTDIR makes no sense"
dir=$destdir
else
- dir=${location%/.git}; dir=${dir##*/}
+ dir=${location%/.git}; dir=${dir##*/}; dir=${dir%.git}
fi
if ! echo "$location" | grep -q ":" ; then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-09 1:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-09 1:10 [PATCH Cogito] Strip .git suffix from destination directory Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox