[ruby-cvs:61630] nobu:r54468 (trunk): improve git repository detection

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Apr 1 14:55:30 JST 2016


nobu	2016-04-01 14:55:30 +0900 (Fri, 01 Apr 2016)

  New Revision: 54468

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54468

  Log:
    improve git repository detection
    
    * configure.in (AC_CONFIG_FILES): $srcdir/.git can be a file pointing
      the real git_dir, such as when the git working tree is a "linked
      working tree" (a working tree created by git-worktree). So use
      git-rev-parse --git-dir to check if $srcdir is the top-level of a git
      repository, not just checking if the $srcdir/.git directory does exist
      or not.  [ruby-core:74759] [Bug #12239]
    * tool/change_maker.rb: use tool/vcs.rb to detect VCS. This used to have
      its own VCS detection code, while we have tool/vcs.rb.
    * tool/vcs.rb (detect): remove code duplication

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/tool/change_maker.rb
    trunk/tool/vcs.rb


More information about the ruby-cvs mailing list