ONAP: Ignore git normalization changes on checkout 43/2243/3
authorrobert.tomczyk <robert.tomczyk@est.tech>
Tue, 17 Sep 2019 15:11:38 +0000 (16:11 +0100)
committerRobert Tomczyk <robert.tomczyk@est.tech>
Tue, 17 Sep 2019 15:18:57 +0000 (15:18 +0000)
When the .gitatribute file is setup to change the file line-ending
in the repository the file will be updated straight after git checkout.

The -f flag will ignore those normalized files which cause
the rebuild job to fail for some ONAP projects.

Change-Id: I34007888815956fd04809d693c5fee0df1017c8a

jjb/onap/rebase-jobs.sh

index e888d43e4516f5d212ab7075f3eebb0e1c1a38d3..d8a982298b8964fcac2ecfc32edab80898ec1927 100755 (executable)
@@ -32,7 +32,7 @@ git remote -v
 echo "-- Merging changes from ONAP remote branches to local branch: --"
 for branch in ${REMOTE_BRANCHES}  ; do
     echo "------ Branch name: ${branch}"
-    git checkout ${branch} -q
+    git checkout ${branch} -q -f
     git merge origin/${branch} --ff-only --stat
 done
 echo "-- Pushing changes to Nordix Gerrit --"