Revision | ccc91a517bcee4460f5bb556911d6d17b70a550e (tree) |
---|---|
Time | 2014-06-11 01:21:13 |
Author | umorigu <umorigu@gmai...> |
Commiter | umorigu |
Use git clone and reset to get snapshot revision
@@ -199,8 +199,13 @@ else cmd="checkout" | ||
199 | 199 | fi |
200 | 200 | |
201 | 201 | if [ "$__git" ] ; then |
202 | - echo git clone --depth 10 --branch "$tag" "$gitrepo" "$pkg_dir" | |
203 | - git clone --depth 10 --branch "$tag" "$gitrepo" "$pkg_dir" | |
202 | + echo git clone "$gitrepo" "$pkg_dir" | |
203 | + git clone "$gitrepo" "$pkg_dir" | |
204 | + echo cd $pkg_dir | |
205 | + cd $pkg_dir | |
206 | + echo git reset --hard "$tag" | |
207 | + git reset --hard "$tag" | |
208 | + cd .. | |
204 | 209 | else |
205 | 210 | exit |
206 | 211 | echo cvs -z3 -d "$CVSROOT" -q "$cmd" -r "$tag" -d "$pkg_dir" "$mod" |