Merge "Verify access to source ref during add branch operation" into stable-2.6