I was working on the Git cherry-pick tasks (e.g., /opt/media.git
cloned in /usr/src/kodekloudrepos/media
).
- The main steps I followed:
- Fixed repo ownership (
chown
) and added safe.directory to bypass “dubious ownership” errors. - Configured
user.name
anduser.email
for Git commits. - Checked the
feature
branch logs, found the commit with message “Update info.txt”. - Switched to
master
and rangit cherry-pick <commit-hash>
. - Fixed ownership of the bare repo in
/opt/...
to allowgit push origin master
. - Copied
info.txt
to/tmp/media/info.txt
and set proper permissions. - Verified with:
- Fixed repo ownership (
grep -qs -- 'Welcome to xFusionCorp Industries!' /tmp/media/info.txt
→ Output: OK
Even though I completed all steps and validated manually, the platform sometimes returned:
Unexpected exit code 2 ... grep -qs -- 'Welcome to xFusionCorp Industries!' /tmp/media/info.txt
So the task shows as failed, but the manual check confirms everything is correct.