Currently, cooker clones the main branch of source repository, then checks out the correct branch or revision.
This pull requests ensures that the clone is already done with the correct revision or branch if specified.
This may seem redundant, but if you fork a repo with submodules, create your own branch, and push a commit on it so that the forked repo uses forked submodules, you don't want --recurse-submodules to happen on master and fetch the wrong submodules
Edit: I forgot to mention: since I was already modifying update_directory_initial() to take in the same arguments as update_directory, I took the liberty of also putting them in the same order instead of just adding the new ones at the end
Currently, cooker clones the main branch of source repository, then checks out the correct branch or revision. This pull requests ensures that the clone is already done with the correct revision or branch if specified.
This may seem redundant, but if you fork a repo with submodules, create your own branch, and push a commit on it so that the forked repo uses forked submodules, you don't want
--recurse-submodules
to happen onmaster
and fetch the wrong submodulesEdit: I forgot to mention: since I was already modifying
update_directory_initial()
to take in the same arguments asupdate_directory
, I took the liberty of also putting them in the same order instead of just adding the new ones at the end