Use released versions of maven artifacts
[ccsdk/distribution.git] / dgbuilder / git_scripts / gitckout
1 if [ "$#" != "2" ]
2 then
3         echo "Usage $0 commitId full_path_to_the_source_file"
4         exit
5 fi
6 fileName=$(basename $2)
7 dirName=$(dirname $2)
8 commitId=$1
9 cd $dirName
10 if [ -e "$2" ]
11 then
12         rm $2 2>/dev/null
13 fi
14 git checkout $commitId $fileName
15 cat $fileName

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use