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

Re: [JGIT PATCH] Disambiguate "push not supported" from "repository not found"

From
MZMarek Zawirski <marek.zawirski@gmail.com>
Date
Aug 29, 2008, 12:18 UTC
Message-ID
<48B7E927.2000205@gmail.com>
In-Reply-To
<200808291120.44413.robin.rosenberg@dewire.com>
Robin Rosenberg wrote:
Show 16 quoted lines
> fredagen den 29 augusti 2008 02.18.38 skrev Shawn O. Pearce:
>> +				if (avail.isEmpty())
>> +					throw noRepository();
>>  				throw eof;
>>  			}
>>  
>> @@ -185,6 +182,10 @@ else if (this instanceof FetchConnection)
>>  		available(avail);
>>  	}
>>  
>> +	protected TransportException noRepository() {
>> +		return new NoRemoteRepositoryException(uri, "not found.");
>> +	}
>> +
> 
> Why an extra method for instantiating the exception?
Isn't it overrode in subclass - BasePackPushConnection?
-- 
Marek Zawirski [zawir]
marek.zawirski@gmail.com
Previous: Robin RosenbergNext: Shawn O. Pearce
Message 3 of 6 in “Disambiguate "push not supported" from "repository not found"”
  1. Disambiguate "push not supported" from "repository not found"Shawn O. Pearce, Aug 29, 2008
  2. Robin RosenbergAug 29, 2008
  3. Marek ZawirskiAug 29, 2008
  4. Shawn O. PearceAug 29, 2008
  5. Robin RosenbergAug 31, 2008
  6. Shawn O. PearceSep 2, 2008

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.