Skip to content

Mnt/condafiy

Paul McCarthy requested to merge mnt/condafiy into master

Replace old tags with conda-compliant ones. Not bothering with externally hosted projects just yet.

You can double-check that the old and new tags are pointing to the same commit like so:

git ls-remote git@git.fmrib.ox.ac.uk:fsl/<project>.git <oldtag>
git ls-remote git@git.fmrib.ox.ac.uk:fsl/<project>.git <newtag>

Couldn't help myself:

git show 86a38ec2 | grep -B1 "^-" | tail -n+3 |grep -v "^-" | sed -e 's/^ *\(.*\):$/\1/g' > projects.txt
git show 86a38ec2 | grep     "^-" | tail -n+2 |tr -s ' ' | cut -d ' ' -f 3 > oldtags.txt
git show 86a38ec2 | grep     "^+" | tail -n+2 |tr -s ' ' | cut -d ' ' -f 3 > newtags.txt

paste projects.txt oldtags.txt newtags.txt > retagged.txt

while read line; do
  project=$(echo -n "$line" | awk '{print $1}')
  oldtag=$(echo -n "$line" | awk  '{print $2}')
  newtag=$(echo -n "$line" | awk  '{print $3}')
  oldhash=$(git ls-remote git@git.fmrib.ox.ac.uk:fsl/"$project".git "$oldtag" | awk '{print $1}')
  newhash=$(git ls-remote git@git.fmrib.ox.ac.uk:fsl/"$project".git "$newtag" | awk '{print $1}')
  if [[ "$oldhash" == "$newhash" ]]; then
    echo "$project tags match ($newhash)";
  else
    echo "$project tags do not match ($newhash, $oldhash)";
  fi
done < retagged.txt
Edited by Paul McCarthy

Merge request reports