DefaultGitVersionControlSpecSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Some tweaks to source dependency error messages.

    • -4
    • +3
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 5 more files in changeset.
Fix unit tests

    • -3
    • +4
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 5 more files in changeset.
Include simple test with locking

This is not sufficient to prove that pulling multiple

`VersionControlSpec`s in parallel to the same directory will be

safe. We still need to add some more sophisticated testing fixtures to

prove that.

This change also switches who has the responsibility for making the

"uniqueId()" for the `VersionControlSpec` globally unique. The

previous implementation wouldn't work given that the

`VersionControlSystem` would always be a

`ThreadSafeVersionControlSystem` no matter what the delegate

`VersionControlSystem` would be.

Part of gradle/gradle-native#146

    • -3
    • +3
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 9 more files in changeset.
GitVersionControlSystem.uniqueId return a string representing the git URL instead of a hash

    • -3
    • +3
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 1 more file in changeset.
Switch getUniquePath() to getUniqueId()

We cannot use the `Path` type as it is considered an `internal`

type.

Part of gradle/gradle-native#87

    • -4
    • +3
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 3 more files in changeset.
Address review feedback

    • -3
    • +4
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 11 more files in changeset.
Add tests and fix DefaultGitVersionControlSpec

There were a few cases which weren't being handled correctly:

* We had too many slashes in our `repositoryId`s

* We were not extracting the repo name if the repo eneded in `.git`

Part of gradle/gradle-native#88

    • -0
    • +56
    ./DefaultGitVersionControlSpecSpec.groovy
  1. … 1 more file in changeset.