This commit is contained in:
init
2025-09-19 15:56:31 +08:00
repo.diff.parent 5caf41cf28
repo.diff.commit d0f9cd5ef0
repo.diff.stats_desc%!(EXTRA int=2, int=2, int=2)

repo.diff.view_file

@@ -285,7 +285,7 @@ func CreateDevContainerByDockerCommand(ctx context.Context, newDevcontainer *dev
Status: "waitting",
UserId: newDevcontainer.UserId,
RepoId: newDevcontainer.RepoId,
Command: `docker -H ` + dockerSocket + ` exec -it --workdir ` + newDevcontainer.DevcontainerWorkDir + ` ` + newDevcontainer.Name + ` sh -c "echo 'Successfully connected to the container';bash"` + "\n",
Command: `docker -H ` + dockerSocket + ` exec -it --workdir ` + newDevcontainer.DevcontainerWorkDir + "/" + repo.Name + ` ` + newDevcontainer.Name + ` sh -c "echo 'Successfully connected to the container';bash"` + "\n",
ListId: 4,
DevcontainerId: newDevcontainer.Id,
}); err != nil {

repo.diff.view_file

@@ -282,7 +282,7 @@ function getStatus() {
if(status !== '9' && status !== '-1' && data.status == '9'){
window.location.reload();
}
if(status == '9' && data.status == '-1'){
if(status !== '-1' && data.status == '-1'){
window.location.reload();
}
status = data.status