11 lines
545 B
Text
11 lines
545 B
Text
105,114d104
|
|
< 1155a1216,1224
|
|
< > isAnnexFile, okAnnexFile := ctx.Data["IsAnnexFile"]
|
|
< > isAnnexFilePresent, okAnnexFilePresent := ctx.Data["IsAnnexFilePresent"]
|
|
< > if okAnnexFile && okAnnexFilePresent && isAnnexFile.(bool) && !isAnnexFilePresent.(bool) {
|
|
< > // If the file to be viewed is annexed but not present then render it normally
|
|
< > // (which will show the plain git blob content, i.e. the symlink or pointer target)
|
|
< > // but make the status code a 404.
|
|
< > ctx.HTML(http.StatusNotFound, tplRepoHome)
|
|
< > return
|
|
< > }
|