Skip to content

Commit 950960e

Browse files
committed
Use example.com domain for default signature.
This domain is guaranteed to be unused (see RFC2606). It is inappropriate to use a real domain for a made-up email address.
1 parent 6ff12ed commit 950960e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ Repository.prototype.defaultSignature = function() {
681681
var result = NodeGit.Signature.default(this);
682682

683683
if (!result || !result.name()) {
684-
result = NodeGit.Signature.now("unknown", "unknown@unknown.com");
684+
result = NodeGit.Signature.now("unknown", "unknown@example.com");
685685
}
686686

687687
return result;

test/tests/signature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe("Signature", function() {
7272
.then(function(repo) {
7373
var sig = repo.defaultSignature();
7474
assert.equal(sig.name(), "unknown");
75-
assert.equal(sig.email(), "unknown@unknown.com");
75+
assert.equal(sig.email(), "unknown@example.com");
7676
})
7777
.then(cleanUp)
7878
.then(done)

0 commit comments

Comments
 (0)