 func gitDropChanges(path: String) -> Bool
 {
     let output = shell(["cd \(path)",
-        "git stash -u", "git stash drop"])
+        "\(gitPath) stash -u", "\(gitPath) stash drop"])
     return (output.status == 0)
 }
 
 func gitCurrentBranch(path: String) -> String
 {
     let output = shell(["cd \(path)",
-        "git rev-parse --abbrev-ref HEAD"])
+        "\(gitPath) rev-parse --abbrev-ref HEAD"])
     return output.output
 }
 

{
    gitDropChanges(path)
    let output = shell(["cd \(path)",
        "git checkout /\(branch)"])
    print(output)
    return (output.status == 0)
}

    return (output.status == 0)
}

func gitInstalledPath() -> String {
    let output = shell(["which git"])
    return output.output
}

func gitCheckoutAtTag(path: String, tag: String) -> Bool
{
    let output = shell(["cd \(path)",
        "\(gitPath) checkout tags/\(tag)"])
    print(output)
    return (output.status == 0)
}
