| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -625,8 +625,8 @@ def _get_fetch_info_from_stderr(self, proc, progress): | |||
| 625 | 625 | for pline in progress_handler(line): | |
| 626 | 626 | # END handle special messages | |
| 627 | 627 | for cmd in cmds: | |
| 628 | - if len(pline) > 1 and pline[0] == ' ' and pline[1] == cmd: | ||
| 629 | - fetch_info_lines.append(pline) | ||
| 628 | + if len(line) > 1 and line[0] == ' ' and line[1] == cmd: | ||
| 629 | + fetch_info_lines.append(line) | ||
| 630 | 630 | continue | |
| 631 | 631 | # end find command code | |
| 632 | 632 | # end for each comand code we know | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -909,6 +909,9 @@ def test_work_tree_unsupported(self, rw_dir): | |||
| 909 | 909 | rw_master = self.rorepo.clone(join_path_native(rw_dir, 'master_repo')) | |
| 910 | 910 | rw_master.git.checkout('HEAD~10') | |
| 911 | 911 | worktree_path = join_path_native(rw_dir, 'worktree_repo') | |
| 912 | - rw_master.git.worktree('add', worktree_path, 'master') | ||
| 912 | + try: | ||
| 913 | + rw_master.git.worktree('add', worktree_path, 'master') | ||
| 914 | + except Exception as ex: | ||
| 915 | + raise AssertionError(ex, "It's ok if TC not running from `master`.") | ||
| 913 | 916 | ||
| 914 | 917 | self.failUnlessRaises(InvalidGitRepositoryError, Repo, worktree_path) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments