sascha-andres/git-commit

View on GitHub
subcommands/uninstall.go

Summary

Maintainability
A
0 mins
Test Coverage
package subcommands

import (
    "os"
)

// Uninstall removes a hook
func Uninstall(gitFolderPath string) error {
    commitHookFilePath := createCommitHookFilePath(gitFolderPath)

    return os.Remove(commitHookFilePath)
}