Skip to content

Commit f6a31bc

Browse files
authored
Merge branch 'master' into format
2 parents 99caf99 + 6463483 commit f6a31bc

File tree

8 files changed

+196
-8
lines changed

8 files changed

+196
-8
lines changed

integrations/git_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@ func rawTest(t *testing.T, ctx *APITestContext, little, big, littleLFS, bigLFS s
216216
req = NewRequest(t, "GET", path.Join("/", username, reponame, "/raw/branch/master/", littleLFS))
217217
resp = session.MakeRequest(t, req, http.StatusOK)
218218
assert.NotEqual(t, littleSize, resp.Body.Len())
219-
assert.Contains(t, resp.Body.String(), models.LFSMetaFileIdentifier)
219+
assert.LessOrEqual(t, resp.Body.Len(), 1024)
220+
if resp.Body.Len() != littleSize && resp.Body.Len() <= 1024 {
221+
assert.Contains(t, resp.Body.String(), models.LFSMetaFileIdentifier)
222+
}
220223
}
221224

222225
if !testing.Short() {
@@ -228,7 +231,9 @@ func rawTest(t *testing.T, ctx *APITestContext, little, big, littleLFS, bigLFS s
228231
req = NewRequest(t, "GET", path.Join("/", username, reponame, "/raw/branch/master/", bigLFS))
229232
resp = session.MakeRequest(t, req, http.StatusOK)
230233
assert.NotEqual(t, bigSize, resp.Body.Len())
231-
assert.Contains(t, resp.Body.String(), models.LFSMetaFileIdentifier)
234+
if resp.Body.Len() != bigSize && resp.Body.Len() <= 1024 {
235+
assert.Contains(t, resp.Body.String(), models.LFSMetaFileIdentifier)
236+
}
232237
}
233238
}
234239
})

options/license/C-UDA-1.0

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Computational Use of Data Agreement v1.0
2+
3+
This is the Computational Use of Data Agreement, Version 1.0 (the “C-UDA”). Capitalized terms are defined in Section 5. Data Provider and you agree as follows:
4+
5+
1. Provision of the Data
6+
7+
1.1. You may use, modify, and distribute the Data made available to you by the Data Provider under this C-UDA for Computational Use if you follow the C-UDA's terms.
8+
9+
1.2. Data Provider will not sue you or any Downstream Recipient for any claim arising out of the use, modification, or distribution of the Data provided you meet the terms of the C-UDA.
10+
11+
1.3 This C-UDA does not restrict your use, modification, or distribution of any portions of the Data that are in the public domain or that may be used, modified, or distributed under any other legal exception or limitation.
12+
13+
2. Restrictions
14+
15+
2.1 You agree that you will use the Data solely for Computational Use.
16+
17+
2.2 The C-UDA does not impose any restriction with respect to the use, modification, or distribution of Results.
18+
19+
3. Redistribution of Data
20+
21+
3.1. You may redistribute the Data, so long as:
22+
23+
3.1.1. You include with any Data you redistribute all credit or attribution information that you received with the Data, and your terms require any Downstream Recipient to do the same; and
24+
25+
3.1.2. You bind each recipient to whom you redistribute the Data to the terms of the C-UDA.
26+
27+
4. No Warranty, Limitation of Liability
28+
29+
4.1. Data Provider does not represent or warrant that it has any rights whatsoever in the Data.
30+
31+
4.2. THE DATA IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
32+
33+
4.3. NEITHER DATA PROVIDER NOR ANY UPSTREAM DATA PROVIDER SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE DATA OR RESULTS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
34+
35+
5. Definitions
36+
37+
5.1. “Computational Use” means activities necessary to enable the use of Data (alone or along with other material) for analysis by a computer.
38+
39+
5.2.“Data” means the material you receive under the C-UDA in modified or unmodified form, but not including Results.
40+
41+
5.3. “Data Provider” means the source from which you receive the Data and with whom you enter into the C-UDA.
42+
43+
5.4. “Downstream Recipient” means any person or persons who receives the Data directly or indirectly from you in accordance with the C-UDA.
44+
45+
5.5. “Result” means anything that you develop or improve from your use of Data that does not include more than a de minimis portion of the Data on which the use is based. Results may include de minimis portions of the Data necessary to report on or explain use that has been conducted with the Data, such as figures in scientific papers, but do not include more. Artificial intelligence models trained on Data (and which do not include more than a de minimis portion of Data) are Results.
46+
47+
5.6. “Upstream Data Providers” means the source or sources from which the Data Provider directly or indirectly received, under the terms of the C-UDA, material that is included in the Data.

options/license/CC-BY-SA-2.1-JP

Lines changed: 83 additions & 0 deletions
Large diffs are not rendered by default.

options/license/GD

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Credits and license terms
2+
3+
In order to resolve any possible confusion regarding the authorship of gd, the following copyright statement covers all of the authors who have required such a statement.  If you are aware of any oversights in this copyright notice, please contact Pierre-A.  Joye who will be pleased to correct them.
4+
5+
• Portions copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 by Cold Spring Harbor Laboratory.  Funded under Grant P41-RR02188 by the National Institutes of Health.
6+
• Portions copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 by Boutell.Com, Inc.
7+
• Portions relating to GD2 format copyright 1999, 2000, 2001, 2002, 2003, 2004 Philip Warner.
8+
• Portions relating to PNG copyright 1999, 2000, 2001, 2002, 2003, 2004 Greg Roelofs.
9+
• Portions relating to gdttf.c copyright 1999, 2000, 2001, 2002, 2003, 2004 John Ellson ([email protected]).
10+
• Portions relating to gdft.c copyright 2001, 2002, 2003, 2004 John Ellson ([email protected]).
11+
• Portions copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Pierre-Alain Joye ([email protected]).
12+
• Portions relating to JPEG and to color quantization copyright 2000, 2001, 2002, 2003, 2004, Doug Becker and copyright © 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Thomas G.  Lane.  This software is based in part on the work of the Independent JPEG Group.  See the file README-JPEG.TXT for more information.
13+
• Portions relating to GIF compression copyright 1989 by Jef Poskanzer and David Rowley, with modifications for thread safety by Thomas Boutell.
14+
• Portions relating to GIF decompression copyright 1990, 1991, 1993 by David Koblas, with modifications for thread safety by Thomas Boutell.
15+
• Portions relating to WBMP copyright 2000, 2001, 2002, 2003, 2004 Maurice Szmurlo and Johan Van den Brande.
16+
• Portions relating to GIF animations copyright 2004 Jaakko Hyvätti ([email protected])
17+
18+
Permission has been granted to copy, distribute and modify gd in any context without fee, including a commercial application, provided that this notice is present in user-accessible supporting documentation.
19+
20+
This does not affect your ownership of the derived work itself, and the intent is to assure proper credit for the authors of gd, not to interfere with your productive use of gd.  If you have questions, ask.  “Derived works” includes all programs that utilize the library.  Credit must be given in user-accessible documentation.
21+
22+
This software is provided “AS IS.”  The copyright holders disclaim all warranties, either express or implied, including but not limited to implied warranties of merchantability and fitness for a particular purpose, with respect to this code and accompanying documentation.
23+
24+
Although their code does not appear in the current release, the authors wish to thank David Koblas, David Rowley, and Hutchison Avenue Software Corporation for their prior contributions.

options/license/MIT-Modern-Variant

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Permission is hereby granted, without written agreement and without
2+
license or royalty fees, to use, copy, modify, and distribute this
3+
software and its documentation for any purpose, provided that the
4+
above copyright notice and the following two paragraphs appear in
5+
all copies of this software.
6+
7+
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
8+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
9+
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
10+
IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
11+
DAMAGE.
12+
13+
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
14+
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
15+
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
16+
ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
17+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

templates/repo/header.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
</div>
8484
</form>
8585
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
86-
<div class="ui labeled button {{if not $.IsSigned}} disabled{{end}}" tabindex="0">
87-
<a class="ui compact small basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
86+
<div class="ui labeled button{{if not $.CanSignedUserFork}} poping up disabled{{end}}"{{if and (not $.CanSignedUserFork) $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{else if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_guest_user"}}"{{end}} data-position="top center" data-variation="tiny" tabindex="0">
87+
<a class="ui compact small basic button"{{if $.CanSignedUserFork}} href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{end}}>
8888
{{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}}
8989
</a>
9090
<a class="ui basic label" href="{{.Link}}/forks">

web_src/less/_base.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,7 @@ a.ui.label:hover {
15851585
border-left: none;
15861586
}
15871587

1588+
.ui.labeled.button.disabled > .button,
15881589
.ui.basic.buttons .button,
15891590
.ui.basic.button {
15901591
color: var(--color-text-light);

web_src/less/_repository.less

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2856,14 +2856,25 @@ tbody.commit-list {
28562856
align-items: center;
28572857
}
28582858

2859-
.repo-buttons button[disabled],
28602859
.repo-buttons button[disabled] ~ .label {
28612860
opacity: var(--opacity-disabled);
28622861
}
28632862

2864-
.repo-buttons .ui.labeled.button > .label {
2865-
border-left: 0 !important;
2866-
margin: 0 !important;
2863+
.repo-buttons .ui.labeled.button {
2864+
cursor: initial;
2865+
2866+
> .label {
2867+
border-left: 0 !important;
2868+
margin: 0 !important;
2869+
}
2870+
2871+
&.disabled {
2872+
pointer-events: inherit !important;
2873+
2874+
> .button {
2875+
pointer-events: none !important;
2876+
}
2877+
}
28672878
}
28682879

28692880
.tag-code {

0 commit comments

Comments
 (0)