git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-clone --shared should imply --local

From
PRPavel Roskin <proski@gnu.org>
Date
Nov 29, 2005, 06:20 UTC
Message-ID
<1133245249.27750.77.camel@dv>

The "--shared" option to git-clone is silently ignored if "--local" is not specified. The manual doesn't mention such dependency. Make "--shared" imply "--local".

Signed-off-by: Pavel Roskin <proski@gnu.org>
diff --git a/git-clone.sh b/git-clone.sh
index c09979a..699205e 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -73,7 +73,7 @@ while
 	*,-n) no_checkout=yes ;;
 	*,-l|*,--l|*,--lo|*,--loc|*,--loca|*,--local) use_local=yes ;;
         *,-s|*,--s|*,--sh|*,--sha|*,--shar|*,--share|*,--shared) 
-          local_shared=yes ;;
+          local_shared=yes; use_local=yes ;;
 	*,-q|*,--quiet) quiet=-q ;;
 	1,-u|1,--upload-pack) usage ;;
 	*,-u|*,--upload-pack)
-- 
Regards,
Pavel Roskin
Next: Junio C Hamano
Message 1 of 4 in “git-clone --shared should imply --local”
  1. git-clone --shared should imply --localPavel Roskin, Nov 29, 2005
  2. Junio C HamanoNov 29, 2005
  3. Pavel RoskinNov 29, 2005
  4. Junio C HamanoNov 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.