public GitRepository(String url)
 {
     this.url                = url;
     this.isBusy             = false;
     this.taskDescription    = "";
     this.progress           = 0;
     this.isIndetermerminate = false;
     this._gitHandler        = new GitHandler(this);
     this._zipHandler        = new ZipHandler(this);
     this._webDavHandler     = new WebDavHandler(this);
 }
Example #2
0
        public void GetGitDirTest()
        {
            GitHandler handler = new GitHandler();

            var dir = handler.GetGitDir("/test.com/12 34.git");

            Assert.AreEqual("test.com/12 34.git", dir);

            dir = handler.GetGitDir("/git-scc.git/info/refs?service=git-upload-pack");
            Assert.AreEqual("git-scc.git", dir);

            dir = handler.GetGitDir("/12 34/git-scc.git/info/refs?service=git-upload-pack");
            Assert.AreEqual("12 34/git-scc.git", dir);

            dir = handler.GetGitDir("/test/12/34/git-scc.git/info/refs?service=git-upload-pack");
            Assert.AreEqual("test/12/34/git-scc.git", dir);
        }
Example #3
0
        public void IsReusableTest()
        {
            GitHandler handler = new GitHandler();

            Assert.IsFalse(handler.IsReusable);
        }