function correct was replaced with sync-committers 12/13812/1
authorAric Gardner <agardner@linuxfoundation.org>
Tue, 4 Dec 2018 20:38:12 +0000 (15:38 -0500)
committerAric Gardner <agardner@linuxfoundation.org>
Tue, 4 Dec 2018 20:39:05 +0000 (15:39 -0500)
This change was not reflected in the autocorrectinfofile
fuction

Change-Id: I7251508fce9afe5ebe7f14c941c278c186208258
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
shell/autocorrectinfofile

index 97fdb25..4e87778 100755 (executable)
@@ -102,8 +102,8 @@ main() {
   fi
 
   if ! [[ -d "$DIR"/"$repo" ]]; then
-    echo "    git clone -q $gerritclonebase$repo $DIR/$repo || exit 1"
-    git clone -q "$gerritclonebase""$repo" "$DIR"/"$repo" || exit 1
+    echo "    git clone -q $gerritclonebase/$repo $DIR/$repo || exit 1"
+    git clone -q "$gerritclonebase"/"$repo" "$DIR"/"$repo" || exit 1
   fi
 
   diff="$(diff <(lftools infofile get-committers "$DIR"/LDAP.yaml 2>&-| sort) <(lftools infofile get-committers "$DIR"/"$repo"/INFO.yaml 2>&- | sort))"
@@ -138,8 +138,8 @@ main() {
   if ! [ "${#onlyinLDAP[@]}" -eq 0 ]; then
     echo "    These users are listed as commiters in LDAP and not in the INFO.yaml"
     for missing in "${onlyinLDAP[@]}"; do
-      echo "    lftools infofile correct $DIR/$repo/INFO.yaml $DIR/LDAP.yaml $missing --repo $repo 2>&-"
-      lftools infofile correct "$DIR"/"$repo"/INFO.yaml "$DIR"/LDAP.yaml "$missing" --repo "$repo" 2>&-
+      echo "    lftools infofile sync-committers $DIR/$repo/INFO.yaml $DIR/LDAP.yaml $missing --repo $repo 2>&-"
+      lftools infofile sync-committers "$DIR"/"$repo"/INFO.yaml "$DIR"/LDAP.yaml "$missing" --repo "$repo" 2>&-
     done
 
   fi