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-05 15:43:36 +0000 |
commit | 96810cade04cad44d70a7c6e51aacdf89caef92b (patch) | |
tree | ed864ab2419a5b4730c3c96ad3e5f0ea1113470b /bitbake/lib/bb/fetch2/git.py | |
parent | 0fdcc509c534d4e561674be02d26efedf638f7c6 (diff) | |
download | poky-96810cade04cad44d70a7c6e51aacdf89caef92b.tar.gz |
bitbake/fetch2/git: Ensure we prune origin to remove stale branches
Thanks to Bruce Ashfield for the tip.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 9f79d47762..ec20d262a8 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -127,6 +127,7 @@ class Git(Fetch): | |||
127 | needupdate = True | 127 | needupdate = True |
128 | if needupdate: | 128 | if needupdate: |
129 | bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path)) | 129 | bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path)) |
130 | runfetchcmd("%s remote prune origin" % ud.basecmd, d) | ||
130 | runfetchcmd("%s remote rm origin" % ud.basecmd, d) | 131 | runfetchcmd("%s remote rm origin" % ud.basecmd, d) |
131 | runfetchcmd("%s remote add origin %s://%s%s%s" % (ud.basecmd, ud.proto, username, ud.host, ud.path), d) | 132 | runfetchcmd("%s remote add origin %s://%s%s%s" % (ud.basecmd, ud.proto, username, ud.host, ud.path), d) |
132 | runfetchcmd("%s fetch --all -t" % ud.basecmd, d) | 133 | runfetchcmd("%s fetch --all -t" % ud.basecmd, d) |