diff options
author | Tomáš Chvátal <tomas.chvatal@gmail.com> | 2013-11-19 11:14:42 +0100 |
---|---|---|
committer | Adrian Schröter <adrian@suse.de> | 2013-12-03 08:34:42 +0100 |
commit | 87a0d0e11723a50ddab354966c1729d742149bd8 (patch) | |
tree | f49ca43aa83e75e1aa948226484ee0bd538c524f /vc | |
parent | 6f9f48e88eea2d14a6ce5ba928de0d8ad972cba3 (diff) |
Preserve ownership of changelog file too.
Diffstat (limited to 'vc')
-rwxr-xr-x | vc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" |