e6ecc2aa382a563597afd5586d7ff1e6f6a89b35,src/python/pants/base/build_environment.py,,get_scm,#,41

Before Change


  global _SCM
  if not _SCM:
    // We know about git, so attempt an auto-configure
    git_dir = os.path.join(get_buildroot(), ".git")
    if os.path.isdir(git_dir):
      from pants.scm.git import Git
      git = Git(worktree=get_buildroot())
      try:

After Change


    if worktree and os.path.isdir(worktree):
      git = Git(worktree=worktree)
      try:
        log.info("Detected git repository at %s on branch %s" % (worktree, git.branch_name))
        set_scm(git)
      except git.LocalException as e:
        log.info("Failed to load git repository at %s: %s" % (worktree, e))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: e6ecc2aa382a563597afd5586d7ff1e6f6a89b35
Time: 2014-08-15
Author: stuhood@gmail.com
File Name: src/python/pants/base/build_environment.py
Class Name:
Method Name: get_scm


Project Name: pantsbuild/pants
Commit Name: c7cb8d547af707a6f35fc0c4cc6a5f70986f57ac
Time: 2015-10-15
Author: benjyw@gmail.com
File Name: tests/python/pants_test/tasks/test_roots.py
Class Name: ListRootsTest
Method Name: test_multiple_source_root


Project Name: pantsbuild/pants
Commit Name: ca40e28b75a412bb3d8a6899489c5672782d08d5
Time: 2014-07-28
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/tasks/test_jvm_bundle_integration.py
Class Name: BundleIntegrationTest
Method Name: test_bundle_of_nonascii_classes


Project Name: pantsbuild/pants
Commit Name: c7cb8d547af707a6f35fc0c4cc6a5f70986f57ac
Time: 2015-10-15
Author: benjyw@gmail.com
File Name: tests/python/pants_test/tasks/test_roots.py
Class Name: ListRootsTest
Method Name: test_single_source_root