6 printf $
"Usage: %s REMOTENAME ... , where ... stands for parsecvs args.\n" "$0"
17 readonly WORK_DIR
="$(mktemp -d --tmpdir parsecvs-"$
(basename "$REMOTE")".XXXXXX)"
18 # -- basename is needed to make / possible in the branchnames.
19 # I'll remove the temp dir only if the script completes successfully;
20 # otherwise, let it stay for investigation.
22 printf $
"%s failed; investigate in %s.\n" "$0" "$WORK_DIR"
26 GIT_DIR
="$WORK_DIR"/.git parsecvs
"$@"
28 git fetch
"$WORK_DIR" refs
/heads
/*:"$REMOTE"/*
31 rm -rf "$WORK_DIR" && printf $
"%s removed.\n" "$WORK_DIR"