Make patchwork-update-commits work from outside the Patchwork git
repository so it can be used for other projects.

Signed-off-by: Sascha Silbe <[email protected]>
---
 tools/patchwork-update-commits |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index ce4f301..a31cc2e 100755
--- a/tools/patchwork-update-commits
+++ b/tools/patchwork-update-commits
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-pwpath=apps/patchwork
+toolsdir="$(dirname "$0")"
+pwpath="${toolsdir}"/../apps/patchwork
 
 if [ "$#" -lt 2 ]
 then
-- 
1.7.2.3

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to