I'm running pipeline on a angular workspace project power by nrwl.
and I have a npm script that reference the branch (`origin/master`)
<span>node --max_old_space_size=8192 ./node_modules/.bin/nx affected:lint --parallel --maxParallel 8 --base=origin/master --head=1ffcde318bba511382be7bd44cfdccb186e063a1</span>
(Note the --base option)
<span>this will work when the pipeline is running on master branch but I kept getting </span>
fatal: Not a valid object name origin/master
when running pipeline on other branch.
I thought it's because master is not fetched, so I add
<span>git fetch origin master</span>
before I run the other command, and from the log I can tell that master is being fetched but I still get the error.
Does anyone know how to resolve this?