阅读:8523回复:4

git commit 问题

楼主#
更多 发布于:2019-09-12 14:52
git commit 提交时无法提交成功,出现这样的错误提示是什么问题?大家有没有见过

yu@ubuntu:~/android/Android7_xml20170619_OTT/common$ git commit -m "add week fuc"
ERROR: do not set execute permissions for source files
#3: FILE: drivers/rtc/rtc-HYM8563.c


total: 1 errors, 0 warnings, 8 lines checked


Your patch has style problems, please review.


If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.


提交的patch很简单,就只有一个文件,一行改动


[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
沙发#
发布于:2019-09-12 16:41
是不是要赋予执行权限啊?
If you have nothing to lose, then you can do anything.
板凳#
发布于:2019-09-12 17:45
-rwxr--r-- 1 yu yu 21465 May 27 11:17 drivers/rtc/rtc-HYM8563.c
是提交的这个文件要可执行权限吗
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
地板#
发布于:2019-09-18 17:07
VastStarGames:是不是要赋予执行权限啊?回到原帖
是权限的问题:
-rwxr--r-- 1 yu yu 32577 Sep 18 16:58 arch/arm64/boot/dts/amlogic/gxm_q201_3g.dts
chmod 644
就OK了

不是要赋予执行权限,而是不能有执行权限
-rw-r--r-- 1 yu yu 32577 Sep 18 16:58 arch/arm64/boot/dts/amlogic/gxm_q201_3g.dts
这样就没问题,挺奇怪的,我是看到其他的文件都是这样的权限,但是我每次修改某个文件之后,他的权限就变成了
-rwxr--r--  害的我经常要chmod 644改回来,也是很无语,不知道是啥问题
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
4楼#
发布于:2019-09-18 20:59
zhaoyf13:是权限的问题:
-rwxr--r-- 1 yu yu 32577 Sep 18 16:58 arch/arm64/boot/dts/amlogic/gxm_q201_3g.dts
chmod 644
就OK了

不是要赋予执行权限,而是不能...
回到原帖
嗯嗯,是的,她的提示:do not set execute permissions for source files.
资源文件不要设置执行权限。
If you have nothing to lose, then you can do anything.
游客

返回顶部