Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dandaman committed Feb 17, 2018
1 parent 28e0ab3 commit 481ce72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file modified web_services/bitbucket/cloneAllBitbucketRepos.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions web_services/bitbucket/mirrorAllBitbucketRepos.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#modified by DL
#17.02.2018

curl -u ${1} https://api.bitbucket.org/1.0/users/${2} > repoinfo
curl -u ${1} https://api.bitbucket.org/1.0/users/${2} > ${2}.bitbucket.repoinfo

for repo_name in `cat repoinfo | sed -r 's/("name": )/\n\1/g' | sed -r 's/"name": "(.*)"/\1/' | sed -e 's/{//' | cut -f1 -d\" | tr '\n' ' '`
for repo_name in `cat ${2}.bitbucket.repoinfo | sed -r 's/("name": )/\n\1/g' | sed -r 's/"name": "(.*)"/\1/' | sed -e 's/{//' | cut -f1 -d\" | tr '\n' ' '`
do
echo "Cloning " $repo_name
git clone --mirror ssh://[email protected]/${2}/$repo_name
Expand Down

0 comments on commit 481ce72

Please sign in to comment.