Skip to content

Commit 6bd0ca3

Browse files
authored
Merge branch 'main' into NO-git.NewCommand
2 parents f07c53b + 9419dd2 commit 6bd0ca3

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed

modules/git/notes_gogit.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func GetNote(ctx context.Context, repo *Repository, commitID string, note *Note)
2222
log.Trace("Searching for git note corresponding to the commit %q in the repository %q", commitID, repo.Path)
2323
notes, err := repo.GetCommit(NotesRef)
2424
if err != nil {
25+
if IsErrNotExist(err) {
26+
return err
27+
}
2528
log.Error("Unable to get commit from ref %q. Error: %v", NotesRef, err)
2629
return err
2730
}

modules/git/notes_nogogit.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func GetNote(ctx context.Context, repo *Repository, commitID string, note *Note)
2121
log.Trace("Searching for git note corresponding to the commit %q in the repository %q", commitID, repo.Path)
2222
notes, err := repo.GetCommit(NotesRef)
2323
if err != nil {
24+
if IsErrNotExist(err) {
25+
return err
26+
}
2427
log.Error("Unable to get commit from ref %q. Error: %v", NotesRef, err)
2528
return err
2629
}

options/gitignore/Nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore build outputs from performing a nix-build or `nix build` command
2+
result
3+
result-*

options/gitignore/Packer

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@ packer_cache/
44
# Crash log
55
crash.log
66

7+
# https://www.packer.io/guides/hcl/variables
8+
# Exclude all .pkrvars.hcl files, which are likely to contain sensitive data,
9+
# such as password, private keys, and other secrets. These should not be part of
10+
# version control as they are data points which are potentially sensitive and
11+
# subject to change depending on the environment.
12+
#
13+
*.pkrvars.hcl
14+
715
# For built boxes
816
*.box

options/gitignore/Terraform

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
crash.log
1010
crash.*.log
1111

12-
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
13-
# password, private keys, and other secrets. These should not be part of version
14-
# control as they are data points which are potentially sensitive and subject
12+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
13+
# password, private keys, and other secrets. These should not be part of version
14+
# control as they are data points which are potentially sensitive and subject
1515
# to change depending on the environment.
1616
#
1717
*.tfvars

options/license/Jam

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
License is hereby granted to use this software and distribute it freely,
2+
as long as this copyright notice is retained and modifications are
3+
clearly marked.
4+
5+
ALL WARRANTIES ARE HEREBY DISCLAIMED.

0 commit comments

Comments
 (0)