mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Add script to ease tag cleanup for every developers
This commit is contained in:
parent
e0873687a2
commit
c0e564517e
20
build_scripts/git_tag_cleaner.sh
Executable file
20
build_scripts/git_tag_cleaner.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function git_del_tag()
|
||||||
|
{
|
||||||
|
mTag=$1
|
||||||
|
|
||||||
|
for mRemote in $(git remote); do
|
||||||
|
echo "Attempting tag $mTag removal from remote $mRemote"
|
||||||
|
GIT_TERMINAL_PROMPT=0 git push $mRemote :$mTag || true
|
||||||
|
done
|
||||||
|
git tag --delete $mTag
|
||||||
|
}
|
||||||
|
|
||||||
|
for mModule in . build_scripts/OBS/ libbitdht/ libretroshare/ openpgpsdk/ retroshare-webui/ ; do
|
||||||
|
pushd $mModule
|
||||||
|
git_del_tag v0.6.7a
|
||||||
|
git tag --list | grep untagged | while read mTag; do git_del_tag $mTag ; done
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user