Bad diff highlight #9137

Closed
opened 2025-11-02 08:30:32 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Fogapod on GitHub (Jun 27, 2022).

Description

my changes:

diff --git a/core/deploy_core.sh b/core/deploy_core.sh
index ea37829..cec1cc4 100644
--- a/core/deploy_core.sh
+++ b/core/deploy_core.sh
@@ -57,7 +57,7 @@ echo "Complete. Start deploy process."
 
 PROJECT_DIR=$BASE_PATH"/$PROJECT_DIR_NAME"
 PROJECT_DEPLOY_DIR=$PROJECT_DIR"_deploy"
-FILES_FOR_DEL=("Pipfile" "Pipfile.lock" ".git" ".gitignore" ".gitmodules" "README.md" "config.sample.ini" "runserver.sh" "runserver_pipenv.sh" "supervisord.conf" "supervisord.pipenv.conf" "systemd.sample" "requirements.txt" "deploy.sh")
+FILES_FOR_DEL=(".git" ".gitignore" "README.md" "config.sample.ini" "runserver.sh" "runserver_pipenv.sh" "supervisord.conf" "supervisord.pipenv.conf" "systemd.sample" "requirements.in" "requirements.txt" "deploy.sh")
 SUPERVISORCTL_CMD='supervisorctl -c supervisord.conf '
 
 ################################# DEPLOY SCRIPT ########################################

how gitea displays this file:
image

Pipfile" "Pipfile.lock part got removed but only Pipfile" is red

Gitea Version

1.17.0+rc1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.36.1

Operating System

No response

How are you running Gitea?

Locally compiled binary

Database

PostgreSQL

Originally created by @Fogapod on GitHub (Jun 27, 2022). ### Description my changes: ```diff diff --git a/core/deploy_core.sh b/core/deploy_core.sh index ea37829..cec1cc4 100644 --- a/core/deploy_core.sh +++ b/core/deploy_core.sh @@ -57,7 +57,7 @@ echo "Complete. Start deploy process." PROJECT_DIR=$BASE_PATH"/$PROJECT_DIR_NAME" PROJECT_DEPLOY_DIR=$PROJECT_DIR"_deploy" -FILES_FOR_DEL=("Pipfile" "Pipfile.lock" ".git" ".gitignore" ".gitmodules" "README.md" "config.sample.ini" "runserver.sh" "runserver_pipenv.sh" "supervisord.conf" "supervisord.pipenv.conf" "systemd.sample" "requirements.txt" "deploy.sh") +FILES_FOR_DEL=(".git" ".gitignore" "README.md" "config.sample.ini" "runserver.sh" "runserver_pipenv.sh" "supervisord.conf" "supervisord.pipenv.conf" "systemd.sample" "requirements.in" "requirements.txt" "deploy.sh") SUPERVISORCTL_CMD='supervisorctl -c supervisord.conf ' ################################# DEPLOY SCRIPT ######################################## ``` how gitea displays this file: ![image](https://user-images.githubusercontent.com/22667809/175924066-dc0c1dba-8ad4-49d7-8803-58c70de65c2f.png) `Pipfile" "Pipfile.lock` part got removed but only `Pipfile"` is red ### Gitea Version 1.17.0+rc1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.36.1 ### Operating System _No response_ ### How are you running Gitea? Locally compiled binary ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 08:30:32 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jun 27, 2022):

@wxiaoguang commented on GitHub (Jun 27, 2022): * https://github.com/go-gitea/gitea/pull/19958
Author
Owner

@Fogapod commented on GitHub (Jun 27, 2022):

For some reason i thought that is already merged. Thanks

@Fogapod commented on GitHub (Jun 27, 2022): For some reason i thought that is already merged. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9137