mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 06:17:58 +01:00
Fix :version when running from hg on Windows®.
This commit is contained in:
@@ -154,7 +154,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
*/
|
*/
|
||||||
VCSPath: Class.memoize(function () {
|
VCSPath: Class.memoize(function () {
|
||||||
if (/pre$/.test(this.addon.version)) {
|
if (/pre$/.test(this.addon.version)) {
|
||||||
let uri = this.addon.getResourceURI("../.hg");
|
let uri = util.newURI(this.addon.getResourceURI("").spec + "../.hg");
|
||||||
if (uri instanceof Ci.nsIFileURL &&
|
if (uri instanceof Ci.nsIFileURL &&
|
||||||
uri.file.exists() &&
|
uri.file.exists() &&
|
||||||
io.pathSearch("hg"))
|
io.pathSearch("hg"))
|
||||||
|
|||||||
Reference in New Issue
Block a user