Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
detect this URL as baked in from the configuration
- Rerere support doesn't actually work
-- Utility scripts gct should support multiple filenames
- "Version 3.0.0 doesn't exist; did you mean 3.0?"
- util.fetch() should use urllib under the hood, not httplib. Code
has to be changed. We should log if we get redirected.
echo "Usage: gct FILE"
exit 1
fi
-OWNER=$(stat -c "%u:%g" "$1")
set -x
-git checkout --theirs "$1"
-chown "$OWNER" "$1"
-git add "$1"
+for file in "$@"
+do
+ OWNER=$(stat -c "%u:%g" "$file")
+ git checkout --theirs "$file"
+ chown "$OWNER" "$file"
+ git add "$file"
+done