瀏覽代碼

sphinx_multiversion/git: Fix file checks for remote branches

Jan Holthuis 4 年之前
父節點
當前提交
00e9abe53e
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      docs/changelog.rst
  2. 1 1
      sphinx_multiversion/git.py

+ 1 - 0
docs/changelog.rst

@@ -12,6 +12,7 @@ Version 0.2.3
 
 * Fixed return codes of main() function and exit with non-zero status if no matching refs were found.
 * Added some logging calls to the git module.
+* Fix bug where local branch was used to check the existence of files on remote branches.
 
 
 Version 0.2.2

+ 1 - 1
sphinx_multiversion/git.py

@@ -104,7 +104,7 @@ def get_refs(
         missing_files = [
             filename
             for filename in files
-            if not file_exists(gitroot, ref.name, filename)
+            if not file_exists(gitroot, ref.refname, filename)
         ]
         if missing_files:
             logger.debug(