jeremyskinner / git-dot-aspx Goto Github PK
View Code? Open in Web Editor NEWImplementation of git-http-backend for IIS7/ASP.NET
License: Apache License 2.0
Implementation of git-http-backend for IIS7/ASP.NET
License: Apache License 2.0
I can view the repositories from the Application page.
However, when I try to clone the repo I get that error
$ git clone http://localhost/GitAspx/registry.git
Cloning into 'registry'...
fatal: unable to access 'http://localhost/GitAspx/registry.git/': The requested URL returned error: 403
I'm using this program on Windows Server 2012 R2(Japanese Edition).
Sometimes I got 'HTTP Error 500' when I pushing to Server.
This problem is not everytime. I can push the data to Server but sometimes I got 'HTTP Error 500'.
However, I don't know other error-trigger.
When I got a 'HTTP Error 500', I did 'application pool recycling' on IIS.
After then It is work.
Do you have any ideas for solve a problem?
**I'm sorry, but I'm not good at English.
This is a '500 Error page'-------->
Line 15: < ul id = "repositories" >
Line 16: <% foreach (var repository in Model.Repositories) { %>
Line 17: < li>5
Line 18: < a class="repository" href="javascript:void(0)" title="<%"Url.ProjectUrl(repository.Name)"%>">
ソース ファイル: d:\git_aspx\Views\DirectoryList\Index.aspx 行: 16
ソース ファイル: d:\git_aspx\Views\DirectoryList\Index.aspx 行: 16
スタック トレース:
[NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません。]
GitSharp.Core.OffsetCache2.Gc() in C:\Projects\GitSharp\GitSharp.Core\OffsetCache.cs:489 GitSharp.Core.OffsetCache
2.removeAll(PackFile pack) in C:\Projects\GitSharp\GitSharp.Core\OffsetCache.cs:393
GitSharp.Core.WindowCache.Purge(PackFile pack) in C:\Projects\GitSharp\GitSharp.Core\WindowCache.cs:167
GitSharp.Core.PackFile.Close() in C:\Projects\GitSharp\GitSharp.Core\PackFile.cs:195
GitSharp.Core.PackFile.Dispose() in C:\Projects\GitSharp\GitSharp.Core\PackFile.cs:628
GitSharp.Core.ObjectDirectory.closeSelf() in C:\Projects\GitSharp\GitSharp.Core\ObjectDirectory.cs:111
GitSharp.Core.ObjectDatabase.close() in C:\Projects\GitSharp\GitSharp.Core\ObjectDatabase.cs:107
GitSharp.Core.ObjectDatabase.Dispose() in C:\Projects\GitSharp\GitSharp.Core\ObjectDatabase.cs:99
GitSharp.Core.Repository.Close() in C:\Projects\GitSharp\GitSharp.Core\Repository.cs:943
GitSharp.Core.Repository.Dispose() in C:\Projects\GitSharp\GitSharp.Core\Repository.cs:1394
GitAspx.Lib.Repository.GetLatestCommit() in c:\Projects\git-dot-aspx\GitAspx\Lib\Repository.cs:64
GitAspx.Controllers.DirectoryListController.b__1(Repository x) in c:\Projects\git-dot-aspx\GitAspx\Controllers\DirectoryListController.cs:37
System.Linq.WhereSelectListIterator`2.MoveNext() +243
ASP.views_directorylist_index_aspx.__RenderMain(HtmlTextWriter __w, Control parameterContainer) in d:\git_aspx\Views\DirectoryList\Index.aspx:16
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +149
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +149
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +84
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +149
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5362
<----------------------------------------
Thank you for your reading.
Git hooks don't appear to be firing when using git-dot-aspx path.
My test hook is named "post-receive" containing this:
#!/bin/sh
echo "post-receive hook" >> A:\Test.txt
echo "Hooked"
I haven't found any way to debug or figure out what's going on, so I'm not sure what additional information I can provide.
I deploy solution on windows 2008 R2, but when a try to call the application, i've got an issue :
Parser Error Message: Could not load type 'GitAspx.MvcApplication'.
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="GitAspx.MvcApplication" Language="C#" %>
Can you help me ?
Regards
Hi again,
Https support would be great since basic authentication does not make much sense when everything is sent as plain text over the web. Well, I am not telling you anything new, right? :)
Since I have already everything setup (following your IIS-hg turotial for the https configuration) and did some test, I thought it might be helpful to give you some feedback on the error messages I got. So here is my output, when everything was configure to use SSL:
--- snip ---
C:\tmp\git>git clone https://[email protected]/git/sandbox
Initialized empty Git repository in C:/tmp/git/sandbox/.git/
Password:
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing https://[email protected]/git/sandbox/info/refs
fatal: HTTP request failed
--- snap ---
HTH,
Hauke
Hi Jeremy,
First, thanks for the great program. I have managed to setup a git and hg repository in parallel on my machine (Windows 7 x64, IIS7) following your tutorials. Regarding the URL you display when clicking on a git repository one currently gets something like
git clone: [http://localhost/git/sandbox]
Assuming the website has enabled basic authentication and disabled anonymous authentication it would be great if you could change the URL to
git clone: [http://foo@localhost/git/sandbox]
Regards,
Hauke
p.s. I am a total IIS noob an just started to play around with it yesterday.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.