Florian Zschocke
2013-08-17 8a67d9dcdcc63fe48c97e83ffbc2a643eee2ed60
src/main/java/com/gitblit/utils/JGitUtils.java
@@ -89,8 +89,6 @@
import com.gitblit.models.PathModel.PathChangeModel;
import com.gitblit.models.RefModel;
import com.gitblit.models.SubmoduleModel;
import com.sun.jna.Library;
import com.sun.jna.Native;
/**
 * Collection of static methods for retrieving information from a repository.
@@ -290,8 +288,7 @@
                config.setBoolean("receive", null, "denyNonFastforwards", true);
                config.save();
                if (! System.getProperty("os.name").toLowerCase().startsWith("windows")) {
                    final CLibrary libc = (CLibrary) Native.loadLibrary("c", CLibrary.class);
            if (! JnaUtils.isWindows()) {
                    //libc.chmod("/path/to/file", 0755);
                }
@@ -301,9 +298,6 @@
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
    interface CLibrary extends Library {
        public int chmod(String path, int mode);
    }
    private enum GitConfigSharedRepositoryValue {
        UMASK("0", 0), FALSE("0", 0), OFF("0", 0), NO("0", 0),