ssb-git-repo
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -784,2 +784,9 @@ var pull = require('pull-stream') | ||
Repo.prototype.getPack = function (wants, haves, cb) { | ||
// ensure our id is present | ||
if (!this.sbot.id) return this.sbot.whoami(function (err, feed) { | ||
if (err) return cb(err) | ||
this.sbot.id = feed.id | ||
this.getPack(wants, haves, cb) | ||
}.bind(this)) | ||
// construct a packfile containing all objects needed to update from haves to | ||
@@ -817,3 +824,10 @@ // wants. instead of walking the commit graph, walk the ssb msg graph. | ||
msg = repo._msgsByObject[sha1] | ||
if (msg) haveMsgs[msg.key] = true | ||
if (msg) { | ||
// don't let own messages interfere. we may have content that we pushed | ||
// which links to other content that we don't have, | ||
// if we pushed something without fetching first. | ||
if (msg.value.author !== this.sbot.id) { | ||
haveMsgs[msg.key] = true | ||
} | ||
} | ||
} | ||
@@ -820,0 +834,0 @@ |
{ | ||
"name": "ssb-git-repo", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "git repos in secure-scuttlebutt", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git://github.com/clehner/ssb-git-repo" | ||
"url": "https://git-ssb.celehner.com/%25xChSOex77EjNh%2BoS8LPLdq%2B4nK1gylButbAgjS1IINs%3D.sha256" | ||
}, | ||
@@ -21,5 +21,4 @@ "keywords": [ | ||
"license": "Fair", | ||
"bugs": { | ||
"url": "https://github.com/clehner/ssb-git-repo/issues" | ||
}, | ||
"homepage": "https://git-ssb.celehner.com/%25xChSOex77EjNh%2BoS8LPLdq%2B4nK1gylButbAgjS1IINs%3D.sha256", | ||
"bugs": "https://git-ssb.celehner.com/%25xChSOex77EjNh%2BoS8LPLdq%2B4nK1gylButbAgjS1IINs%3D.sha256/issues", | ||
"dependencies": { | ||
@@ -34,3 +33,3 @@ "kvgraph": "^0.1.0", | ||
"pull-hash": "^1.0.0", | ||
"pull-stream": "^3.1.0", | ||
"pull-stream": "^3.4.5", | ||
"ssb-mentions": "^0.1.0", | ||
@@ -43,3 +42,3 @@ "ssb-pull-requests": "^0.2.0", | ||
"abstract-pull-git-repo": "^0.4.1", | ||
"scuttlebot": "^8.7.2", | ||
"scuttlebot": "^9.0.2", | ||
"ssb-blobs": "^0.1.6", | ||
@@ -46,0 +45,0 @@ "ssb-keys": "^6.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1096
1
68636
8
2
Updatedpull-stream@^3.4.5