Skip to content

Commit e8e4bbc

Browse files
authored
Merge branch 'main' into main
2 parents ae6ee1d + a9577e0 commit e8e4bbc

File tree

10 files changed

+134
-152
lines changed

10 files changed

+134
-152
lines changed

modules/git/commit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,5 +357,5 @@ func Test_GetCommitBranchStart(t *testing.T) {
357357
startCommitID, err := repo.GetCommitBranchStart(os.Environ(), "branch1", commit.ID.String())
358358
assert.NoError(t, err)
359359
assert.NotEmpty(t, startCommitID)
360-
assert.EqualValues(t, "9c9aef8dd84e02bc7ec12641deb4c930a7c30185", startCommitID)
360+
assert.EqualValues(t, "95bb4d39648ee7e325106df01a621c530863a653", startCommitID)
361361
}

modules/git/repo_commit.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ func (repo *Repository) AddLastCommitCache(cacheKey, fullName, sha string) error
519519
return nil
520520
}
521521

522+
// GetCommitBranchStart returns the commit where the branch diverged
522523
func (repo *Repository) GetCommitBranchStart(env []string, branch, endCommitID string) (string, error) {
523524
cmd := NewCommand(repo.Ctx, "log", prettyLogFormat)
524525
cmd.AddDynamicArguments(endCommitID)
@@ -533,19 +534,18 @@ func (repo *Repository) GetCommitBranchStart(env []string, branch, endCommitID s
533534

534535
parts := bytes.Split(bytes.TrimSpace(stdout), []byte{'\n'})
535536

536-
var startCommitID string
537+
// check the commits one by one until we find a commit contained by another branch
538+
// and we think this commit is the divergence point
537539
for _, commitID := range parts {
538540
branches, err := repo.getBranches(env, string(commitID), 2)
539541
if err != nil {
540542
return "", err
541543
}
542544
for _, b := range branches {
543545
if b != branch {
544-
return startCommitID, nil
546+
return string(commitID), nil
545547
}
546548
}
547-
548-
startCommitID = string(commitID)
549549
}
550550

551551
return "", nil

options/locale/locale_ga-IE.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ issues.label.filter_sort.by_size=Méid is lú
16461646
issues.label.filter_sort.reverse_by_size=Méid is mó
16471647
issues.num_participants=%d Rannpháirtithe
16481648
issues.attachment.open_tab=`Cliceáil chun "%s" a fheiceáil i gcluaisín nua`
1649-
issues.attachment.download=Cliceáil chun "%s" a íoslódáil
1649+
issues.attachment.download=`Cliceáil chun "%s" a íoslódáil`
16501650
issues.subscribe=Liostáil
16511651
issues.unsubscribe=Díliostáil
16521652
issues.unpin=Díphoráil

options/locale/locale_pt-BR.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,9 +1135,9 @@ file_view_raw=Ver original
11351135
file_permalink=Link permanente
11361136
file_too_large=O arquivo é muito grande para ser mostrado.
11371137
invisible_runes_header=`Este arquivo contém caracteres Unicode invisíveis`
1138-
invisible_runes_description=Este arquivo contém caracteres Unicode invisíveis que são indistinguíveis para humanos, mas que podem ser processados de forma diferente por um computador. Se você acha que isso é intencional, pode ignorar esse aviso com segurança. Use o botão Escapar para revelá-los
1138+
invisible_runes_description=`Este arquivo contém caracteres Unicode invisíveis que são indistinguíveis para humanos, mas que podem ser processados de forma diferente por um computador. Se você acha que isso é intencional, pode ignorar esse aviso com segurança. Use o botão Escapar para revelá-los`
11391139
ambiguous_runes_header=`Este arquivo contém caracteres Unicode ambíguos`
1140-
ambiguous_runes_description=Este arquivo contém caracteres Unicode que podem ser confundidos com outros caracteres. Se você acha que isso é intencional, pode ignorar esse aviso com segurança. Use o botão Escapar para revelá-los
1140+
ambiguous_runes_description=`Este arquivo contém caracteres Unicode que podem ser confundidos com outros caracteres. Se você acha que isso é intencional, pode ignorar esse aviso com segurança. Use o botão Escapar para revelá-los`
11411141
invisible_runes_line=`Esta linha tem caracteres unicode invisíveis`
11421142
ambiguous_runes_line=`Esta linha tem caracteres unicode ambíguos`
11431143

package-lock.json

Lines changed: 49 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@
102102
"markdownlint-cli": "0.43.0",
103103
"nolyfill": "1.0.43",
104104
"postcss-html": "1.8.0",
105-
"stylelint": "16.13.2",
105+
"stylelint": "16.14.1",
106+
"stylelint-config-recommended": "15.0.0",
106107
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
107108
"stylelint-declaration-strict-value": "1.10.7",
109+
"stylelint-define-config": "16.14.0",
108110
"stylelint-value-no-unknown-custom-properties": "6.0.1",
109111
"svgo": "3.3.2",
110112
"type-fest": "4.33.0",

poetry.lock

Lines changed: 19 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[virtualenvs]
22
in-project = true
33
options.no-pip = true
4-
options.no-setuptools = true

0 commit comments

Comments
 (0)