Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> This utility is **exactly** the same as [breser/git2consul](https://github.com/breser/git2consul) but it includes a small patch that fixes a crash on Windows.

# git2consul

[![Build Status](https://travis-ci.org/breser/git2consul.svg?branch=master)](https://travis-ci.org/breser/git2consul)
Expand Down
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module.exports.validate_writeable_directory = function(dir) {
}

// Check whether this owner or group or anyone is allowed to write the directory.
var can_write = ((process.getuid() === stat.uid) && (stat.mode & 00200)) || // User is owner and owner can write.
var can_write = (!process.getuid) || // process.getuid() does not exist on windows
((process.getuid() === stat.uid) && (stat.mode & 00200)) || // User is owner and owner can write.
((process.getgid() === stat.gid) && (stat.mode & 00020)) || // User is in group and group can write.
((stat.mode & 00002)); // Anyone can write.
if (!can_write) {
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"name": "git2consul",
"name": "git2consul-windows",
"description": "System for moving data from git to consul",
"license": "Apache-2.0",
"version": "0.12.13",
"version": "0.12.14",
"contributors": [
{
"name": "Ryan Breen",
"email": "[email protected]"
},
{
"name": "Andri Rakotomalala",
"email": "[email protected]"
}
],
"repository": {
"type": "git",
"url": "git://github.com/Cimpress-MCP/git2consul.git"
"url": "git://github.com/andriniaina/git2consul-windows.git"
},
"dependencies": {
"body-parser": "~1.4.3",
Expand Down