Details
-
Type:
Story
-
Status: Invalid
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: Continuous Integration
-
Labels:None
-
Epic Link:
-
Team:SQuaRE
Description
The git version check used by the deploy script is broken such that a local version of git will always been built. This check either needs to be fixed or removed.
What makes you think it's broken? Reproducing the logic on my mac suggests that the basic testing is fine:
thrylos:~ $ GITVERNUM=$(git --version | cut -d\ -f 3)
thrylos:~ $ GITVER=$(printf "%02d-%02d-%02d\n" $(echo "$GITVERNUM" | cut -d. -f1-3 | tr . ' '))
thrylos:~ $ echo $GITVER
02-12-00
thrylos:~ $ if [[ $GITVER < "01-09-00" ]]; then echo old; fi
thrylos:~ $ if [[ $GITVER < "03-09-00" ]]; then echo old; fi
old