Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/git-client-plugin
  Commit: 04229bad9c972ff8e76c1dad5860efe30d26bffd
      
https://github.com/jenkinsci/git-client-plugin/commit/04229bad9c972ff8e76c1dad5860efe30d26bffd
  Author: Mark Waite <[email protected]>
  Date:   2014-02-22 (Sat, 22 Feb 2014)

  Changed paths:
    M src/test/java/org/jenkinsci/plugins/gitclient/GitAPITestCase.java

  Log Message:
  -----------
  Add isBareRepository tests

The assertions are intended to detect unintentional changes to a
deprecated API.  It is safe to assume that since the API is
deprecated, its behavior should not change with future plugin
releases.

The JGit implementation attempts to match the CliGit implementation
but doesn't quite match.  The prioritization of assertions in this file
attempts to show the most critical use cases for isBareRepository are
covered in JGit and CliGit with similar results.

The Javadoc for the CliGit implementation at one time stated that
its argument must be the ".git" directory.  If the caller passes
the .git directory (for a working directory) or the root directory
of the repository (for a bare repository), then the JGit and CliGit
implementations return consistent results.

Fix WorkingArea repo() method for bare repo


  Commit: 867e5f148377fd5a6d96e5aafbdaac132a117a5a
      
https://github.com/jenkinsci/git-client-plugin/commit/867e5f148377fd5a6d96e5aafbdaac132a117a5a
  Author: Mark Waite <[email protected]>
  Date:   2014-02-22 (Sat, 22 Feb 2014)

  Changed paths:
    M src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java

  Log Message:
  -----------
  Change JGit.isBareRepository to be more consistent with CliGit

Only use .git directory in isBare if it actually exists

If GIT_DIR is not absolute, use workspace as repository


Compare: 
https://github.com/jenkinsci/git-client-plugin/compare/6bc60c026f01...867e5f148377

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to