allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject allura git commit: [#8042] ticket:892 Add shared parameter, fix test
Date Wed, 27 Jan 2016 20:43:26 GMT
Repository: allura
Updated Branches:
  refs/heads/master eabfc16b1 -> 00a33b7cc


[#8042] ticket:892 Add shared parameter, fix test


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/00a33b7c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/00a33b7c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/00a33b7c

Branch: refs/heads/master
Commit: 00a33b7cc8266953c8a7f2bf1e712731adafc540
Parents: eabfc16
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Mon Jan 25 22:53:06 2016 +0200
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Jan 27 15:43:14 2016 -0500

----------------------------------------------------------------------
 ForgeGit/forgegit/model/git_repo.py              | 1 +
 ForgeGit/forgegit/tests/model/test_repository.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/00a33b7c/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 7c1bb38..385f440 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -121,6 +121,7 @@ class Repository(M.Repository):
             tmp_repo = git.Repo.clone_from(
                 self.full_fs_path,
                 to_path=tmp_path,
+                shared=True,
                 bare=False)
             tmp_repo = GitImplementation(Object(full_fs_path=tmp_path))._git
             tmp_repo.git.fetch('origin', mr.target_branch)

http://git-wip-us.apache.org/repos/asf/allura/blob/00a33b7c/ForgeGit/forgegit/tests/model/test_repository.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/tests/model/test_repository.py b/ForgeGit/forgegit/tests/model/test_repository.py
index 7e9ec4b..5ec806a 100644
--- a/ForgeGit/forgegit/tests/model/test_repository.py
+++ b/ForgeGit/forgegit/tests/model/test_repository.py
@@ -631,7 +631,8 @@ class TestGitRepo(unittest.TestCase, RepoImplTestBase):
         git.Repo.clone_from.assert_called_once_with(
             self.repo.full_fs_path,
             to_path=tempfile.mkdtemp.return_value,
-            bare=False)
+            bare=False,
+            shared=True)
         tmp_repo = GitImplementation.return_value._git
         assert_equal(
             tmp_repo.git.fetch.call_args_list,


Mime
View raw message