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

cg-update does not work with argument specified

From
ANAlexey Nezhdanov <snake@penza-gsm.ru>
Date
Dec 26, 2005, 14:02 UTC
Message-ID
<200512261702.22747.snake@penza-gsm.ru>

Documentation/tutorial-script/script.sh line 117 fails when trying to execute cg-update bobswork

The error message is: cg-fetch: where to fetch from?

Quick investigation showed that cg-update runs cg-fetch as: cg-fetch "$force" "$name"

When tried it manually with cg-fetch "" bobswork got the same error. Removing "" works fine.

Further investigation showed that cg-fetch uses name="${ARGS[0]}" line to find out branch name but ARGS[0] contains empty string.

Probably something should be fixed about lines 391-404 in cg-Xlib where ARGS is set but I do not know this bash feature so unfortunately can't write patch myself.

Hope this helps.
P.S. Please Cc: me I'm not following the list closely.
-- 
Respectfully
Alexey Nezhdanov
Message 1 of 1 in “cg-update does not work with argument specified”
  1. Alexey NezhdanovDec 26, 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.