Skip to content

Instantly share code, notes, and snippets.

@apk
Created April 14, 2010 06:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apk/365530 to your computer and use it in GitHub Desktop.
Save apk/365530 to your computer and use it in GitHub Desktop.
Import cvs tree into git repo
#!/bin/sh
# Arg: path/to/module/in/cvs
# Run git-cvsimport and place result in subdir cvs.path.to.module.in.cvs
# or update git repo there if already existing (incremental fetch should work)
# Fix to your cvs credentials
p="$1"
d="cvs.`echo $p | tr / .`"
test -d "$d" || mkdir "$d"
cd "$d" || exit 1
git cvsimport -p x -v -k -a -d :pserver:me@cvshost:/opt/cvs "$p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment