Skip to content

Instantly share code, notes, and snippets.

@20after4
Last active January 14, 2018 22:42
Show Gist options
  • Save 20after4/a66a7a61cca9f6dc425b6583b2732da3 to your computer and use it in GitHub Desktop.
Save 20after4/a66a7a61cca9f6dc425b6583b2732da3 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
for i in $( cat ~/gitfat.list ); do
scapdir=`dirname $i`
echo "cd $scapdir"
pushd $scapdir
git status
cat scap.cfg
sed -i.bak '/git_fat: True/a git_binary_manager: git-fat' scap.cfg
git add scap.cfg
#git commit -m 'add git_binary_manager: git-fat (See T184822)' -m 'This is to work around a bug in scap version 3.7.5-1' -m 'Bug: T184882'#
#current_branch=`git rev-parse --abbrev-ref HEAD`
#git push origin HEAD:refs/for/$current_branch
#git reset HEAD^
#git co scap.cfg
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment