cg-update does not work with argument specified

From: Alexey Nezhdanov <snake@penza-gsm.ru>
Date: 2005-12-27 01:02:22
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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Dec 27 01:03:23 2005

This archive was generated by hypermail 2.1.8 : 2005-12-27 01:03:34 EST