summaryrefslogtreecommitdiff
path: root/vc
diff options
context:
space:
mode:
authorTomáš Chvátal <tomas.chvatal@gmail.com>2013-11-19 11:14:42 +0100
committerAdrian Schröter <adrian@suse.de>2013-12-03 08:34:42 +0100
commit87a0d0e11723a50ddab354966c1729d742149bd8 (patch)
treef49ca43aa83e75e1aa948226484ee0bd538c524f /vc
parent6f9f48e88eea2d14a6ce5ba928de0d8ad972cba3 (diff)
Preserve ownership of changelog file too.
Diffstat (limited to 'vc')
-rwxr-xr-xvc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vc b/vc
index 4fbf37b..87f02a6 100755
--- a/vc
+++ b/vc
@@ -166,5 +166,7 @@ if [ -z "$message" ]; then
fi
fi
mode=`stat -c "%a" "$changelog"`
+user=`stat -c "%G:%U" "$changelog"`
mv "$tmpfile" "$changelog"
chmod $mode "$changelog"
+chown $user "$changelog"