Commit 6d5f3db6 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

edit_requirements_txt_for_downstream_in_subdir: unshallow only if needed

parent 812e26f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -657,7 +657,7 @@ function edit_requirements_txt_for_downstream_in_subdir()
  # pip (as of 21.3) uses cause copious error spew, along the lines of
  # "warning: rejected (SHA) because shallow roots are not allowed to be updated"
  # "warning: filtering not recognized by server, ignoring"
  (cd ..; git fetch --unshallow)
  (cd ..; if $(git rev-parse --is-shallow-repository); then git fetch --unshallow; fi)
  
  local PRJ_NAME
  local REQ_TXT_TO_EDIT