aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_commit_test.go
diff options
context:
space:
mode:
authorDavid Cuadrado <krawek@gmail.com>2021-03-26 11:02:47 -0500
committerGitHub <noreply@github.com>2021-03-26 17:02:47 +0100
commit1f328388192915476c68e5e0c8c1c818fd50fc6b (patch)
tree7df158c886cb51c10f0d4ba1814bd198d07d255e /worktree_commit_test.go
parentbf3471db54b0255ab5b159005069f37528a151b7 (diff)
downloadgo-git-1f328388192915476c68e5e0c8c1c818fd50fc6b.tar.gz
transport: ssh, fix cloning large repositories (#272)
* Fix cloning large repositories Ignore the error on close when the connection is already closed Fixes #70 * Compatibility for go 1.13 Because it's required by the pipeline * Add test for allowing to close a command when the client is already closed This test is for issue #70 * Add debug information for broken test
Diffstat (limited to 'worktree_commit_test.go')
-rw-r--r--worktree_commit_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worktree_commit_test.go b/worktree_commit_test.go
index 3bc112b..cb94a2b 100644
--- a/worktree_commit_test.go
+++ b/worktree_commit_test.go
@@ -3,9 +3,11 @@ package git
import (
"bytes"
"io/ioutil"
+ "log"
"os"
"os/exec"
"path/filepath"
+ "runtime"
"strings"
"time"
@@ -309,6 +311,8 @@ func (s *WorktreeSuite) TestJustStoreObjectsNotAlreadyStored(c *C) {
infoLicenseSecond, err := fsDotgit.Stat(filepath.Join("objects", "04", "84eba0d41636ba71fa612c78559cd6c3006cde"))
c.Assert(err, IsNil)
+
+ log.Printf("comparing mod time: %v == %v on %v (%v)", infoLicenseSecond.ModTime(), infoLicense.ModTime(), runtime.GOOS, runtime.GOARCH)
c.Assert(infoLicenseSecond.ModTime(), Equals, infoLicense.ModTime()) // object of LICENSE should have the same timestamp because no additional write operation was performed
}