diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-05 14:16:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 23:36:54 +0000 |
commit | 23a74be8c3d4b685cda8bb96317e866160a0e104 (patch) | |
tree | ecb800665e40a31683b0b569a04541d5bbca6466 /lib/bb/fetch2/git.py | |
parent | 06ca9563a619116f37989da6e54fef821a662215 (diff) | |
download | bitbake-23a74be8c3d4b685cda8bb96317e866160a0e104.tar.gz |
bitbake/fetch2/git: Ensure we prune origin to remove stale branches
Thanks to Bruce Ashfield for the tip.
(From Poky rev: 96810cade04cad44d70a7c6e51aacdf89caef92b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-rw-r--r-- | lib/bb/fetch2/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 9f79d4776..ec20d262a 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -127,6 +127,7 @@ class Git(Fetch): needupdate = True if needupdate: bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path)) + runfetchcmd("%s remote prune origin" % ud.basecmd, d) runfetchcmd("%s remote rm origin" % ud.basecmd, d) runfetchcmd("%s remote add origin %s://%s%s%s" % (ud.basecmd, ud.proto, username, ud.host, ud.path), d) runfetchcmd("%s fetch --all -t" % ud.basecmd, d) |