SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
x11/gnome/gitg/patches/patch-tests_libgitg_test-commit_vala
Normal file
30
x11/gnome/gitg/patches/patch-tests_libgitg_test-commit_vala
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: tests/libgitg/test-commit.vala
|
||||
--- tests/libgitg/test-commit.vala.orig
|
||||
+++ tests/libgitg/test-commit.vala
|
||||
@@ -118,7 +118,7 @@ class LibGitg.Test.Commit : Gitg.Test.Repository
|
||||
var hookdir = d_repository.get_location().get_child("hooks");
|
||||
var pc = hookdir.get_child("pre-commit").get_path();
|
||||
|
||||
- assert(FileUtils.set_contents(pc, "#!/bin/bash\n\necho 'pre-commit failed'; exit 1;\n"));
|
||||
+ assert(FileUtils.set_contents(pc, "#!/bin/sh\n\necho 'pre-commit failed'; exit 1;\n"));
|
||||
assert_inteq(FileUtils.chmod(pc, 0744), 0);
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ class LibGitg.Test.Commit : Gitg.Test.Repository
|
||||
var hookdir = d_repository.get_location().get_child("hooks");
|
||||
var pc = hookdir.get_child("commit-msg").get_path();
|
||||
|
||||
- assert(FileUtils.set_contents(pc, "#!/bin/bash\n\necho 'override message' > $1\n"));
|
||||
+ assert(FileUtils.set_contents(pc, "#!/bin/sh\n\necho 'override message' > $1\n"));
|
||||
assert_inteq(FileUtils.chmod(pc, 0744), 0);
|
||||
|
||||
var stage = d_repository.stage;
|
||||
@@ -190,7 +190,7 @@ class LibGitg.Test.Commit : Gitg.Test.Repository
|
||||
var hookdir = d_repository.get_location().get_child("hooks");
|
||||
var pc = hookdir.get_child("commit-msg").get_path();
|
||||
|
||||
- assert(FileUtils.set_contents(pc, "#!/bin/bash\n\necho 'override message' > $1\n"));
|
||||
+ assert(FileUtils.set_contents(pc, "#!/bin/sh\n\necho 'override message' > $1\n"));
|
||||
assert_inteq(FileUtils.chmod(pc, 0744), 0);
|
||||
|
||||
var stage = d_repository.stage;
|
Loading…
Add table
Add a link
Reference in a new issue