diff --git a/nmpfilter/nmpbyregion.cpp b/nmpfilter/nmpbyregion.cpp index cd3dcaaf..ae1fbbce 100644 --- a/nmpfilter/nmpbyregion.cpp +++ b/nmpfilter/nmpbyregion.cpp @@ -72,6 +72,7 @@ int main(int argc, char *argv[]) // Attempt to find most recent commit info string MasterInfo; string MasterPath = argv[1]; + if (MasterPath.back() != '/') MasterPath += '/'; MasterPath += "../.git/refs/heads/master"; ifstream MasterFile(MasterPath.data()); if (MasterFile)