Whamcloud - gitweb
apparently os x's cvs includes the full cvs repo path in
[fs/lustre-release.git] / build / land1.sh
index 6b69eae..ce152f7 100755 (executable)
@@ -27,7 +27,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
 date=`date +%Y%m%d_%H%M`
 
 dir=${3:-.}
-module=$(<$dir/CVS/Repository)
+module=$(basename $(<$dir/CVS/Repository))
 
 if [ "$module" = "lustre" ] ; then
     echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree."