forked from liuhuigmail/GrowingBugRepository
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepos.sh
More file actions
executable file
·28 lines (26 loc) · 689 Bytes
/
repos.sh
File metadata and controls
executable file
·28 lines (26 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
cd `dirname $0`
path=$PWD
work_dir="$path/project_repos"
cd $work_dir
cat ../framework/bug-mining/bug_mining_projects_info.txt | while read line
do
# read project information
read -ra strarr <<<"$line"
project_link=${strarr[2]}
project_name=${strarr[1]}
echo "PROJECT_LINK: $project_link"
echo "PROJECT_NAME: $project_name"
#if [ ! -d "$project_name.git" ]; then
#echo "$project_name.git"
#echo "WORK_DIR: $work_dir"
# clone projects
#echo $PWD
git clone $project_link $project_name
cd $project_name
mv .git $project_name.git
mv $project_name.git ../
cd ..
rm -rf $project_name
#fi
done