Commit script picking up previous changes if run from dsid_USER branch

Steps to reproduce:

  1. Run script to create dsid_USER_DSID1 which gets merged and remote branch gets deleted but local copy does not
  2. Run script to create dsid_USER_DSID2 while still being on dsid_USER_DSID1 branch
  • Are the changes to DSID2 propagated correctly, without picking simultaneously the changes from DSID1?
  • Is it enough to git checkout origin master in the script before pushing dsid_USER_DSID2?