Check if a refspec's source descriptor matches a negative reference
the refspec
the name of the reference to check
1 if the refspec matches, 0 otherwise