-
-
Couldn't load subscription status.
- Fork 6.2k
Closed
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug
Milestone
Description
- Gitea version (or commit ref): 1.8.1
- Git version: n/a
- Operating system: n/a
- Database (use
[x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL) https://try.gitea.io/jovandeginste/test/src/branch/master/script
- No
- Not relevant
- Log gist:
Description
When I edit a file through Gitea's web interface, the file's modes are (re)set to 644, effectively losing the executable bit if it was set.
I understand that it's not trivial to change file modes through the web interface (eg. when creating new files), but I believe existing files should keep their modes.
The git log of the above repository:
commit 1635a011929aadf493be0863fb936f56b6ed4188
Author: Jo Vandeginste <Jo.Vandeginste@>
Date: Tue Aug 6 11:42:38 2019 +0200
Add an executable script
Signed-off-by: Jo Vandeginste <Jo.Vandeginste@>
diff --git a/script b/script
new file mode 100755
index 0000000..516115d
--- /dev/null
+++ b/script
@@ -0,0 +1 @@
+Some command
commit b7aa45df3b4cb3a085e5b10cae36fbf4c8fed170
Author: jovandeginste <jo.vandeginste@>
Date: Tue Aug 6 09:44:40 2019 +0000
'script' updaten
diff --git a/script b/script
old mode 100755
new mode 100644
index 516115d..fa29636
--- a/script
+++ b/script
@@ -1 +1,3 @@
Some command
+
+some edit
\ No newline at end of fileMetadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug