Changeset 119053 in spip-zone for _outils_


Ignore:
Timestamp:
Dec 14, 2019, 11:45:32 AM (7 months ago)
Author:
cam.lafit
Message:

Vider le plugin s'il n'y a pas de version valide

  • si le tag spip/x.y.z n'est pas présent on initialise le dépot à vide
Location:
_outils_/git_loader/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _outils_/git_loader/trunk

    • Property subgit:lock:c902d9fa70d2d6c2616acd3368f1805cbebe144c deleted
    • Property subgit:lock:66b77fa337f13e8223227824d43bca7b47d4145b set to 2019-12-14T14:40:34.921
  • _outils_/git_loader/trunk/git_loader.sh

    r119052 r119053  
    5353        fi
    5454        git -C "$repo_name" reset --hard "$version" 2>&1 >/dev/null
     55        if [[ "$?" != "0" ]]; then
     56                git -C "$repo_name" checkout --orphan orphan
     57                git -C "$repo_name" reset --hard
     58        fi
    5559
    5660        #git -C "$repo_name" checkout "$version"
Note: See TracChangeset for help on using the changeset viewer.