#!/bin/bash
exec > /tmp/botfix/branch_out.txt 2>&1
cd /home/claude/repos/gbharg-agents
echo "=== current branch + dirty? ==="
git status -s | head
git branch --show-current
echo "=== fetch main ==="
git fetch origin main 2>&1 | tail -3
echo "=== default branch ==="
git remote show origin 2>&1 | grep "HEAD branch"
echo "=== latest main commit ==="
git log origin/main -1 --oneline
echo "DONE_EXIT_OK"
