fix: use git add --sparse to handle sparse-checkout on orphan branch first run
#23571
+32
−2