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

Re: [PATCH 03/13] contrib/subtree: Better Error Handling for add

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Aug 2, 2013, 08:19 UTC
Message-ID
<87bo5g5wu3.fsf@igel.home>
In-Reply-To
<1360064219-28789-4-git-send-email-greened@obbligato.org>
"David A. Greene" <greened@obbligato.org> writes:
>  	elif [ $# -eq 2 ]; then
> -		"cmd_add_repository" "$@"
> +	    git rev-parse -q --verify "$2^{commit}" >/dev/null ||
> +	    die "'$2' does not refer to a commit"

That doesn't make any sense. $2 is a commit in a remote repository which hasn't been fetched yet, so it can never be verified against the local repository.

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: David A. GreeneNext: David A. Greene
Message 5 of 19 in “Rebased git-subtree changes”
  1. David A. GreeneFeb 5, 2013
  2. 01/13 contrib/subtree: Remove Test Number CommentsDavid A. Greene, Feb 5, 2013
  3. 02/13 contrib/subtree: Use %B for Split Subject/BodyDavid A. Greene, Feb 5, 2013
  4. 03/13 contrib/subtree: Better Error Handling for addDavid A. Greene, Feb 5, 2013
  5. Andreas SchwabAug 2, 2013
  6. 04/13 contrib/subtree: Fix SynopsisDavid A. Greene, Feb 5, 2013
  7. Andreas SchwabAug 2, 2013
  8. 05/13 contrib/subtree: Honor DESTDIRDavid A. Greene, Feb 5, 2013
  9. 06/13 contrib/subtree: Make the Manual Directory if NeededDavid A. Greene, Feb 5, 2013
  10. 07/13 contrib/subtree: Fix whitespacesDavid A. Greene, Feb 5, 2013
  11. 08/13 contrib/subtree: Add vim modelineDavid A. Greene, Feb 5, 2013
  12. 09/13 contrib/subtree: Ignore testing directoryDavid A. Greene, Feb 5, 2013
  13. 10/13 contrib/subtree: Code cleaning and refactoringDavid A. Greene, Feb 5, 2013
  14. 11/13 contrib/subtree: Make each test self-containedDavid A. Greene, Feb 5, 2013
  15. 12/13 contrib/subtree: Handle '--prefix' argument with a slash appendedDavid A. Greene, Feb 5, 2013
  16. 13/13 contrib/subtree: Remove --annotateDavid A. Greene, Feb 5, 2013
  17. greened@obbligato.orgFeb 5, 2013
  18. Junio C HamanoFeb 5, 2013
  19. greened@obbligato.orgFeb 18, 2013

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.