Procházet zdrojové kódy

BORG_REPO env var: behave the same when unset or when set to empty string

Thomas Waldmann před 9 měsíci
rodič
revize
ec8a127b01
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/borg/helpers/parseformat.py

+ 1 - 1
src/borg/helpers/parseformat.py

@@ -512,7 +512,7 @@ class Location:
         if not text:
             # we did not get a text to parse, so we try to fetch from the environment
             text = os.environ.get(self.repo_env_var)
-            if text is None:
+            if not text:  # None or ""
                 return
 
         self.raw = text  # as given by user, might contain placeholders