From: Marcel Holtmann <marcel@holtmann.org>
To: Petr Baudis <pasky@ucw.cz>
Cc: GIT Mailing List <git@vger.kernel.org>
Subject: [PATCH Cogito] Strip .git suffix from destination directory
Date: Mon, 09 May 2005 03:10:34 +0200 [thread overview]
Message-ID: <1115601034.8949.99.camel@pegasus> (raw)
[-- 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
reply other threads:[~2005-05-09 1:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1115601034.8949.99.camel@pegasus \
--to=marcel@holtmann.org \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.