{"thread":{"id":"543","subject":"[PATCH Cogito] Strip .git suffix from destination directory","startedAt":"2005-05-09T01:10:34Z","lastAt":"2005-05-09T01:10:34Z","messageCount":1,"participants":["Marcel Holtmann"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"2847","messageId":"1115601034.8949.99.camel@pegasus","threadId":"543","inReplyTo":null,"subject":"[PATCH Cogito] Strip .git suffix from destination directory","fromName":"Marcel Holtmann","fromEmail":"marcel@holtmann.org","sentAt":"2005-05-09T01:10:34Z","receivedAt":"2005-05-09T01:10:34Z","isPatch":true,"sender":{"key":"marcel@holtmann.org","avatar":null},"body":"Hi Petr,\n\nthe attached patch brings back the feature where a .git suffix got\nstripped from the directory name when cloning another tree.\n\nIt also fixes a $samedir vs. $same_dir spelling mistake.\n\nRegards\n\nMarcel\n\n\n\ncg-clone: needs update\nIndex: cg-clone\n===================================================================\n--- 00b94eea5b99d5dd1d1bbe9c9ca3502d11aec581/cg-clone  (mode:100755)\n+++ uncommitted/cg-clone  (mode:100755)\n@@ -28,10 +28,10 @@\n \n destdir=$2\n if [ \"$destdir\" ]; then\n-\t[ ! \"$samedir\" ] || die \"specifying both -s and DESTDIR makes no sense\"\n+\t[ ! \"$same_dir\" ] || die \"specifying both -s and DESTDIR makes no sense\"\n \tdir=$destdir\n else\n-\tdir=${location%/.git}; dir=${dir##*/}\n+\tdir=${location%/.git}; dir=${dir##*/}; dir=${dir%.git}\n fi\n \n if ! echo \"$location\" | grep -q \":\" ; then\n"}]}