You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Could not determine oid for ref ${ref}`);
27
25
}
@@ -74,8 +72,8 @@ export async function getFileChanges(
74
72
`Unexpected symlink at ${filePath}, GitHub API only supports files and directories. You may need to add this file to .gitignore`,
75
73
);
76
74
}
77
-
// Test executable files
78
-
if(stat.mode&0o111){
75
+
constisFileExecutable=(stat.mode&0o111)!==0;
76
+
if(isFileExecutable){
79
77
thrownewError(
80
78
`Unexpected executable file at ${filePath}, GitHub API only supports non-executable files and directories. You may need to add this file to .gitignore`,
81
79
);
@@ -141,13 +139,10 @@ export async function getFileChanges(
0 commit comments