Commit 950960eb authored by David Turner's avatar David Turner

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.
parent 6ff12edf
......@@ -681,7 +681,7 @@ Repository.prototype.defaultSignature = function() {
var result = NodeGit.Signature.default(this);
if (!result || !result.name()) {
result = NodeGit.Signature.now("unknown", "unknown@unknown.com");
result = NodeGit.Signature.now("unknown", "unknown@example.com");
}
return result;
......
......@@ -72,7 +72,7 @@ describe("Signature", function() {
.then(function(repo) {
var sig = repo.defaultSignature();
assert.equal(sig.name(), "unknown");
assert.equal(sig.email(), "unknown@unknown.com");
assert.equal(sig.email(), "unknown@example.com");
})
.then(cleanUp)
.then(done)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment