-
Improvement
-
Resolution: Won't Fix
-
Major
-
Git Plugin = 2.2.2
Jenkins = 1.574
Add a GIT_SPARSE and GIT_SPARSE_N environment variables when sparse locations are entered.
Add a GIT_SPARSE and GIT_SPARSE_N environment variables when sparse locations are entered.
Can't you just read the contents of .git/info/sparse-checkout? That is the file which git uses to record the definition of the sparse checkout, and it doesn't require that you determine how many environment variables were set.