]> git.wh0rd.org - home.git/commitdiff
handle more cvs cases
authorMike Frysinger <vapier@gentoo.org>
Sat, 3 Nov 2012 04:56:15 +0000 (00:56 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 3 Nov 2012 04:56:15 +0000 (00:56 -0400)
.bin/git-update

index 6e4b39f6fd44ae5cf17e32022313978946f34be8..ddc4a8f4df71db419ebb143e6777d9b91df5e772 100755 (executable)
@@ -13,6 +13,9 @@ elif git config cvs.cvsroot >/dev/null ; then
        # authors file is at .git/cvs-authors
        set -- git cvsimport -a -d $(git config cvs.cvsroot) $(git config cvs.module) "$@"
        expected="Already up-to-date."
+elif [[ -d CVS ]] && git rev-parse origin >/dev/null ; then
+       set -- git cvsimport -a
+       expected="Already up-to-date."
 else
        set -- git pull "$@"
        expected="Already up-to-date."