-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix clone wiki failed via ssh #5503
fix clone wiki failed via ssh #5503
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5503 +/- ##
==========================================
+ Coverage 37.59% 37.62% +0.02%
==========================================
Files 318 319 +1
Lines 46928 46947 +19
==========================================
+ Hits 17643 17662 +19
- Misses 26774 26775 +1
+ Partials 2511 2510 -1
Continue to review full report at Codecov.
|
Does user need code rights for wiki? |
isWiki bool | ||
unitType = models.UnitTypeCode | ||
unitName = "code" | ||
) | ||
if strings.HasSuffix(reponame, ".wiki") { | ||
isWiki = true | ||
unitType = models.UnitTypeWiki |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lafriks, no, this line give the unitType as UnitTypeWiki.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you are right
will fix #5291