【问题标题】:Unable to commit with fossil scm无法使用化石 scm 提交
【发布时间】:2021-03-26 16:33:05
【问题描述】:

最近由于以下错误无法提交:

$ fossil commit
$EDITOR './ci-comment-CEA221250987.txt'
Unsafe command string: $EDITOR './ci-comment-CEA221250987.txt'
              here ----^
Aborted (core dumped)

这是一个化石问题还是我的 .bashrc 中有一些恶意配置?


我的化石版本是

$ fossil version
This is fossil version 2.12.1 [b98ce23d4f] 2020-08-20 13:27:04 UT

$EDITOR

$ echo $EDITOR
vim

【问题讨论】:

    标签: version-control fossil


    【解决方案1】:

    “化石设定编辑器”怎么说?您是否将其设置为 $EDITOR?别 去做。这是一个安全风险。出现错误是因为 Fossil 检测到 安全风险,拒绝继续。而是直接将编辑器设置为“vim” 像这样:

    fossil setting editor vim
    

    或者,执行“fossil unset editor”,以便 VISUAL 和 EDITOR 环境变量 将在运行时进行咨询。

    注意:在上面,您可能需要将 --global 选项添加到各种 “设置”和“取消设置”命令,以防您全局设置了“编辑器”。

    【讨论】:

      猜你喜欢
      • 2018-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-13
      • 2016-10-12
      • 1970-01-01
      • 2020-05-06
      • 1970-01-01
      相关资源
      最近更新 更多